libnx  v4.6.0
Functions
ins.h File Reference

INS 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 insrInitialize (void)
 Initialize ins:r.
 
void insrExit (void)
 Exit ins:r.
 
ServiceinsrGetServiceSession (void)
 Gets the Service object for the actual ins:r service session.
 
Result insrGetLastTick (u32 id, u64 *tick)
 Retrieves the last system tick the event corresponding to the ID was signaled at. More...
 
Result insrGetReadableEvent (u32 id, Event *out)
 Retrieves the event corresponding to the ID. More...
 
Result inssInitialize (void)
 Initialize ins:s.
 
void inssExit (void)
 Exit ins:s.
 
ServiceinssGetServiceSession (void)
 Gets the Service object for the actual ins:s service session.
 
Result inssGetWritableEvent (u32 id, Event *out)
 Retrieves the event corresponding to the ID. More...
 

Detailed Description

INS services IPC wrapper.

Author
averne

Function Documentation

◆ insrGetLastTick()

Result insrGetLastTick ( u32  id,
u64 tick 
)

Retrieves the last system tick the event corresponding to the ID was signaled at.

Parameters
[in]idIns request ID (should be 0..4).
[out]tick.
Returns
Result code.
Note
The tick is only updated once per second at minimum.

◆ insrGetReadableEvent()

Result insrGetReadableEvent ( u32  id,
Event out 
)

Retrieves the event corresponding to the ID.

Parameters
[in]idIns request ID (should be 0..4).
[out]out.
Returns
Result code.
Note
The event is only signaled once per second at minimum.

◆ inssGetWritableEvent()

Result inssGetWritableEvent ( u32  id,
Event out 
)

Retrieves the event corresponding to the ID.

Parameters
[in]idIns send ID (should be 0..11).
[out]out.
Returns
Result code.
Note
The returned event cannot be waited on, only signaled. Clearing is handled by the service.