MCPcopy Create free account
hub / github.com/devkitPro/libctru / NDMU_LeaveExclusiveState

Function NDMU_LeaveExclusiveState

libctru/source/services/ndm.c:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50Result NDMU_LeaveExclusiveState(void)
51{
52 u32* cmdbuf=getThreadCommandBuffer();
53
54 cmdbuf[0]=IPC_MakeHeader(0x2,0,2); // 0x20002
55 cmdbuf[1]=IPC_Desc_CurProcessId();
56
57 Result ret=0;
58 if(R_FAILED(ret=svcSendSyncRequest(ndmuHandle)))return ret;
59
60 return (Result)cmdbuf[1];
61}
62
63Result NDMU_GetExclusiveState(ndmExclusiveState *state)
64{

Callers 2

udsInitFunction · 0.85
udsExitFunction · 0.85

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_CurProcessIdFunction · 0.85

Tested by

no test coverage detected