syscall.sh / mipso32 / mmap2
mmap2
map files or devices into memory
sys_mips_mmap2(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)
| number | 4210 (0x1072) |
|---|---|
| abi | o32 |
| entry point | sys_mips_mmap2 |
| since | Linux 5.0 |
| man page | mmap2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4210, the syscall number |
a0 | unsigned long addr |
a1 | unsigned long len |
a2 | unsigned long prot |
a3 | unsigned long flags |
sp+16 | unsigned long fd |
sp+20 | unsigned long pgoff |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 192
- arm 192
- ppc 192
- arc 222
- csky 222
- hexagon 222
- m68k 192
- microblaze 192
- nios2 222
- openrisc 222
- parisc 89
- sh 192
- sparc 56
- xtensa 80
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/mmap2