syscall.sh / ppc64 / mmap
mmap
map or unmap files or devices into memory
sys_mmap(unsigned long addr, size_t len, unsigned long prot, unsigned long flags, unsigned long fd, off_t offset)
| number | 90 (0x5a) |
|---|---|
| abi | common |
| entry point | sys_mmap |
| since | Linux 5.0 |
| man page | mmap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 90, the syscall number |
r3 | unsigned long addr |
r4 | size_t len |
r5 | unsigned long prot |
r6 | unsigned long flags |
r7 | unsigned long fd |
r8 | off_t offset |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 9
- x86 90
- arm64 222
- riscv64 222
- x32 1073741833
- loongarch64 222
- 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/ppc64/mmap