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