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

Function sys_mremap

components/lwp/lwp_syscall.c:2097–2101  ·  view source on GitHub ↗

* @brief Changes the size or location of an existing memory mapping. * * This system call implements the `mremap` system call, allowing the resizing * or relocation of a previously created memory mapping. It is typically used * to dynamically adjust memory allocation for mapped regions without unmapping * and remapping them explicitly. * * @param old_address The starting address of the exis

Source from the content-addressed store, hash-verified

2095 * @see mmap(), munmap(), msync()
2096 */
2097void *sys_mremap(void *old_address, size_t old_size,
2098 size_t new_size, int flags, void *new_address)
2099{
2100 return lwp_mremap(lwp_self(), old_address, old_size, new_size, flags, new_address);
2101}
2102
2103sysret_t sys_madvise(void *addr, size_t len, int behav)
2104{

Callers

nothing calls this directly

Calls 2

lwp_mremapFunction · 0.85
lwp_selfFunction · 0.85

Tested by

no test coverage detected