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

Function sys_shmdt

components/lwp/lwp_syscall.c:4714–4717  ·  view source on GitHub ↗

* @brief Detaches a shared memory segment from the calling process's address space. * * This system call detaches the shared memory segment previously attached to the calling * process's address space using `sys_shmat`. After calling this function, the shared * memory will no longer be accessible via the returned address. * * @param[in] shm_vaddr A pointer to the virtual address where the s

Source from the content-addressed store, hash-verified

4712 * in undefined behavior.
4713 */
4714sysret_t sys_shmdt(void* shm_vaddr)
4715{
4716 return lwp_shmdt(shm_vaddr);
4717}
4718#elif defined RT_LWP_USING_SHM
4719
4720/**

Callers

nothing calls this directly

Calls 1

lwp_shmdtFunction · 0.85

Tested by

no test coverage detected