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

Function sys_munmap

components/lwp/lwp_syscall.c:2062–2065  ·  view source on GitHub ↗

* @brief Unmaps a memory region previously mapped with mmap or mmap2. * * This system call implements the `munmap` system call, which removes a mapping * for a region of memory that was previously created using `mmap` or `mmap2`. * * @param addr The starting address of the memory region to unmap. This address * must be page-aligned and refer to a region previously mapped. * @par

Source from the content-addressed store, hash-verified

2060 * @see mmap(), mmap2(), msync()
2061 */
2062sysret_t sys_munmap(void *addr, size_t length)
2063{
2064 return lwp_munmap(lwp_self(), addr, length);
2065}
2066
2067/**
2068 * @brief Changes the size or location of an existing memory mapping.

Callers

nothing calls this directly

Calls 2

lwp_munmapFunction · 0.85
lwp_selfFunction · 0.85

Tested by

no test coverage detected