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

Function lwp_shmat

components/lwp/lwp_shm.c:304–316  ·  view source on GitHub ↗

A wrapping function: attach the shared memory to the specified address. */

Source from the content-addressed store, hash-verified

302
303/* A wrapping function: attach the shared memory to the specified address. */
304void *lwp_shmat(int id, void *shm_vaddr)
305{
306 void *ret = RT_NULL;
307
308 if (((size_t)shm_vaddr & ARCH_PAGE_MASK) != 0)
309 {
310 return RT_NULL;
311 }
312
313 ret = _lwp_shmat(id, shm_vaddr);
314
315 return ret;
316}
317
318static struct lwp_shm_struct *_lwp_shm_struct_get(struct rt_lwp *lwp, void *shm_vaddr)
319{

Callers 1

sys_shmatFunction · 0.85

Calls 1

_lwp_shmatFunction · 0.85

Tested by

no test coverage detected