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

Function lwp_shmget

components/lwp/lwp_shm.c:193–201  ·  view source on GitHub ↗

A wrapping function, get the shared memory with interrupts disabled. */

Source from the content-addressed store, hash-verified

191
192/* A wrapping function, get the shared memory with interrupts disabled. */
193int lwp_shmget(size_t key, size_t size, int create)
194{
195 int ret = 0;
196
197 rt_mm_lock();
198 ret = _lwp_shmget(key, size, create);
199 rt_mm_unlock();
200 return ret;
201}
202
203/* Locate the binary tree node_key corresponding to the shared-memory id. */
204static struct lwp_avl_struct *shm_id_to_node(int id)

Callers 1

sys_shmgetFunction · 0.85

Calls 3

rt_mm_lockFunction · 0.85
_lwp_shmgetFunction · 0.85
rt_mm_unlockFunction · 0.85

Tested by

no test coverage detected