libnx  v4.2.2
Functions
ectx.h File Reference

[11.0.0+] Error Context services IPC wrapper. More...

#include "../types.h"
#include "../kernel/event.h"
#include "../sf/service.h"

Go to the source code of this file.

Functions

Result ectxrInitialize (void)
 Initialize ectx:r.
 
void ectxrExit (void)
 Exit ectx:r.
 
ServiceectxrGetServiceSession (void)
 Gets the Service object for the actual ectx:r service session.
 
Result ectxrPullContext (s32 *out0, u32 *out_total_size, u32 *out_size, void *dst, size_t dst_size, u32 descriptor, Result result)
 Retrieves the error context associated with an error descriptor and result. More...
 

Detailed Description

[11.0.0+] Error Context services IPC wrapper.

Author
SciresM

Function Documentation

◆ ectxrPullContext()

Result ectxrPullContext ( s32 out0,
u32 out_total_size,
u32 out_size,
void *  dst,
size_t  dst_size,
u32  descriptor,
Result  result 
)

Retrieves the error context associated with an error descriptor and result.

Parameters
[out]out0Output value.
[out]out_total_sizeTotal error context size.
[out]out_sizeError context size.
[out]dstBuffer for output error context.
[in]dst_sizeBuffer size for output error context.
[in]descriptorError descriptor.
[in]resultError result.
Returns
Result code.