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

Function sys_shmrm

components/lwp/lwp_syscall.c:4652–4655  ·  view source on GitHub ↗

* @brief Removes a shared memory segment. * * This system call removes the specified shared memory segment identified by its `id`. * Once removed, the segment will no longer be accessible, and any memory associated * with it will be freed. It is typically used to clean up shared memory resources * when they are no longer needed. * * @param[in] id The identifier of the shared memory segment

Source from the content-addressed store, hash-verified

4650 * calling this function to avoid premature removal and potential data loss.
4651 */
4652sysret_t sys_shmrm(int id)
4653{
4654 return lwp_shmrm(id);
4655}
4656
4657/**
4658 * @brief Attaches a shared memory segment to the calling process's address space.

Callers

nothing calls this directly

Calls 1

lwp_shmrmFunction · 0.85

Tested by

no test coverage detected