mmap on ia32
map or unmap files or devices into memory
compat_sys_ia32_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off)
| number | 90 (0x5a) |
|---|---|
| abi | i386 |
| entry point | compat_sys_ia32_mmap |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | mmap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 90, the syscall number |
ebx | unsigned long addr |
ecx | unsigned long len |
edx | unsigned long prot |
esi | unsigned long flags |
edi | unsigned long fd |
ebp | unsigned long off |
eax | the return value |
Then run int 0x80 to enter the kernel.
This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.
Same syscall on other architectures
- x64 9
- x86 90
- 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/ia32/mmap