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

Function lwp_shminfo

components/lwp/lwp_shm.c:433–441  ·  view source on GitHub ↗

A wrapping function: get the virtual address of a shared memory. */

Source from the content-addressed store, hash-verified

431
432/* A wrapping function: get the virtual address of a shared memory. */
433void *lwp_shminfo(int id)
434{
435 void *vaddr = RT_NULL;
436
437 rt_mm_lock();
438 vaddr = _lwp_shminfo(id);
439 rt_mm_unlock();
440 return vaddr;
441}
442
443#ifdef RT_USING_FINSH
444static int _shm_info(struct lwp_avl_struct* node_key, void *data)

Callers

nothing calls this directly

Calls 3

rt_mm_lockFunction · 0.85
_lwp_shminfoFunction · 0.85
rt_mm_unlockFunction · 0.85

Tested by

no test coverage detected