syscall.sh / x64 / munmap
munmap
map or unmap files or devices into memory
sys_munmap(unsigned long addr, size_t len)
| number | 11 (0xb) |
|---|---|
| abi | common |
| entry point | sys_munmap |
| since | Linux 3.3 |
| man page | munmap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 11, the syscall number |
rdi | unsigned long addr |
rsi | size_t len |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 91
- arm64 215
- arm 91
- riscv64 215
- x32 1073741835
- loongarch64 215
- ppc64 91
- ppc 91
- s390x 91
- mips64 5011
- mipsn32 6011
- mipso32 4091
- alpha 73
- arc 215
- csky 215
- hexagon 215
- m68k 91
- microblaze 91
- nios2 215
- openrisc 215
- parisc 91
- sh 91
- sparc 73
- sparc64 73
- xtensa 81
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/munmap