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

Function udsExit

libctru/source/services/uds.c:95–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void udsExit(void)
96{
97 if (AtomicDecrement(&__uds_refcount)) return;
98
99 udsipc_Shutdown();
100
101 svcCloseHandle(__uds_servhandle);
102 __uds_servhandle = 0;
103
104 svcCloseHandle(__uds_sharedmem_handle);
105 __uds_sharedmem_handle = 0;
106 __uds_sharedmem_size = 0;
107
108 free(__uds_sharedmem_addr);
109 __uds_sharedmem_addr = NULL;
110
111 svcCloseHandle(__uds_connectionstatus_event);
112 __uds_connectionstatus_event = 0;
113
114 NDMU_LeaveExclusiveState();
115 ndmuExit();
116}
117
118Result udsGenerateNodeInfo(udsNodeInfo *nodeinfo, const char *username)
119{

Callers

nothing calls this directly

Calls 3

udsipc_ShutdownFunction · 0.85
NDMU_LeaveExclusiveStateFunction · 0.85
ndmuExitFunction · 0.85

Tested by

no test coverage detected