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

Function lwp_shm_ref_dec

components/lwp/lwp_shm.c:372–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372int lwp_shm_ref_dec(struct rt_lwp *lwp, void *shm_vaddr)
373{
374 int ret = 0;
375
376 rt_mm_lock();
377 ret = _lwp_shm_ref_dec(lwp, shm_vaddr);
378 rt_mm_unlock();
379
380 return ret;
381}
382
383/* Unmap the shared memory from the address space of the current thread. */
384int _lwp_shmdt(void *shm_vaddr)

Callers

nothing calls this directly

Calls 3

rt_mm_lockFunction · 0.85
_lwp_shm_ref_decFunction · 0.85
rt_mm_unlockFunction · 0.85

Tested by

no test coverage detected