syscall.sh / x86 / mmap
mmap
map or unmap files or devices into memory
sys_old_mmap(struct mmap_arg_struct *arg)
| number | 90 (0x5a) |
|---|---|
| abi | i386 |
| entry point | sys_old_mmap |
| since | Linux 3.3 |
| man page | mmap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 90, the syscall number |
ebx | struct mmap_arg_struct *arg |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 9
- arm64 222
- riscv64 222
- x32 1073741833
- loongarch64 222
- ppc64 90
- ppc 90
- s390x 90
- mips64 5009
- mipsn32 6009
- mipso32 4090
- alpha 71
- m68k 90
- microblaze 90
- parisc 90
- sh 90
- sparc 71
- sparc64 71
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/mmap