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

Function sys_shmget

components/lwp/lwp_syscall.c:4625–4628  ·  view source on GitHub ↗

* @brief Allocates or retrieves a shared memory segment. * * This system call allocates a new shared memory segment or retrieves an existing one * based on the specified `key`. Shared memory allows processes to communicate by * sharing a region of memory. * * @param[in] key A unique identifier for the shared memory segment. If `key` matches * an existing segment, it w

Source from the content-addressed store, hash-verified

4623 * a new segment, ensure that `size` is non-zero and meaningful.
4624 */
4625sysret_t sys_shmget(size_t key, size_t size, int create)
4626{
4627 return lwp_shmget(key, size, create);
4628}
4629
4630/**
4631 * @brief Removes a shared memory segment.

Callers

nothing calls this directly

Calls 1

lwp_shmgetFunction · 0.85

Tested by

no test coverage detected