syscall.sh / ppc64 / madvise
madvise
give advice about use of memory
sys_madvise(unsigned long start, size_t len, int behavior)
| number | 205 (0xcd) |
|---|---|
| abi | common |
| entry point | sys_madvise |
| since | Linux 5.0 |
| man page | madvise(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 205, the syscall number |
r3 | unsigned long start |
r4 | size_t len |
r5 | int behavior |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 28
- x86 219
- arm64 233
- arm 220
- riscv64 233
- x32 1073741852
- loongarch64 233
- ppc 205
- s390x 219
- mips64 5027
- mipsn32 6027
- mipso32 4218
- alpha 75
- arc 233
- csky 233
- hexagon 233
- m68k 238
- microblaze 219
- nios2 233
- openrisc 233
- parisc 119
- sh 219
- sparc 75
- sparc64 75
- xtensa 91
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc64/madvise