MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / lwp_shmdt

Function lwp_shmdt

components/lwp/lwp_shm.c:404–413  ·  view source on GitHub ↗

A wrapping function: detach the mapped shared memory. */

Source from the content-addressed store, hash-verified

402
403/* A wrapping function: detach the mapped shared memory. */
404int lwp_shmdt(void *shm_vaddr)
405{
406 int ret = 0;
407
408 rt_mm_lock();
409 ret = _lwp_shmdt(shm_vaddr);
410 rt_mm_unlock();
411
412 return ret;
413}
414
415/* Get the virtual address of a shared memory in kernel. */
416void *_lwp_shminfo(int id)

Callers 1

sys_shmdtFunction · 0.85

Calls 3

rt_mm_lockFunction · 0.85
_lwp_shmdtFunction · 0.85
rt_mm_unlockFunction · 0.85

Tested by

no test coverage detected