munmap on score
map or unmap files or devices into memory
sys_munmap(unsigned long addr, size_t len)
| number | 215 (0xd7) |
|---|---|
| abi | common |
| entry point | sys_munmap |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | munmap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 215, the syscall number |
r4 | unsigned long addr |
r5 | size_t len |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 11
- x86 91
- arm64 215
- arm 91
- riscv64 215
- ia32 91
- x32 1073741835
- loongarch64 215
- ppc64 91
- ppc 91
- s390x 91
- mips64 5011
- mipsn32 6011
- mipso32 4091
- alpha 73
- arc 215
- blackfin 91, removed in 4.17
- cris 91, removed in 4.17
- csky 215
- frv 91, removed in 4.17
- hexagon 215
- ia64 1152, removed in 6.7
- m32r 91, removed in 4.17
- m68k 91
- metag 215, removed in 4.17
- microblaze 91
- mn10300 91, removed in 4.17
- nds32 215, removed in 5.18
- nios2 215
- openrisc 215
- parisc 91
- sh 91
- sparc 73
- sparc64 73
- tilegx 215, removed in 4.17
- tilepro 215, removed in 4.17
- xtensa 81
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/munmap?kernel=all