syscall.sh / ppc / mmap2
mmap2
map files or devices into memory
sys_mmap2(unsigned long addr, size_t len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)
| number | 192 (0xc0) |
|---|---|
| abi | 32 |
| entry point | sys_mmap2 |
| since | Linux 5.0 |
| man page | mmap2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 192, the syscall number |
r3 | unsigned long addr |
r4 | size_t len |
r5 | unsigned long prot |
r6 | unsigned long flags |
r7 | unsigned long fd |
r8 | unsigned long pgoff |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x86 192
- arm 192
- mipso32 4210
- 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/ppc/mmap2