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

Function sys_shmat

components/lwp/lwp_syscall.c:4686–4689  ·  view source on GitHub ↗

* @brief Attaches a shared memory segment to the calling process's address space. * * This system call maps a shared memory segment identified by `id` into the calling * process's address space. The segment can then be accessed using the returned virtual * address. If the segment was previously detached or created, it will be made available * for reading and writing. * * @param[in] id

Source from the content-addressed store, hash-verified

4684 * segment may result in undefined behavior.
4685 */
4686void* sys_shmat(int id, void* shm_vaddr)
4687{
4688 return lwp_shmat(id, shm_vaddr);
4689}
4690
4691/**
4692 * @brief Detaches a shared memory segment from the calling process's address space.

Callers

nothing calls this directly

Calls 1

lwp_shmatFunction · 0.85

Tested by

no test coverage detected