* @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
| 2095 | * @see mmap(), munmap(), msync() |
| 2096 | */ |
| 2097 | void *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 | |
| 2103 | sysret_t sys_madvise(void *addr, size_t len, int behav) |
| 2104 | { |
nothing calls this directly
no test coverage detected