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

Function NDMU_EnterExclusiveState

libctru/source/services/ndm.c:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36Result NDMU_EnterExclusiveState(ndmExclusiveState state)
37{
38 u32* cmdbuf=getThreadCommandBuffer();
39
40 cmdbuf[0]=IPC_MakeHeader(0x1,1,2); // 0x10042
41 cmdbuf[1]=state;
42 cmdbuf[2]=IPC_Desc_CurProcessId();
43
44 Result ret=0;
45 if(R_FAILED(ret=svcSendSyncRequest(ndmuHandle)))return ret;
46
47 return (Result)cmdbuf[1];
48}
49
50Result NDMU_LeaveExclusiveState(void)
51{

Callers 1

udsInitFunction · 0.85

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_CurProcessIdFunction · 0.85

Tested by

no test coverage detected