syscall.sh / x64 / madvise
madvise
give advice about use of memory
sys_madvise(unsigned long start, size_t len, int behavior)
| number | 28 (0x1c) |
|---|---|
| abi | common |
| entry point | sys_madvise |
| since | Linux 3.3 |
| man page | madvise(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 28, the syscall number |
rdi | unsigned long start |
rsi | size_t len |
rdx | int behavior |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 219
- arm64 233
- arm 220
- riscv64 233
- x32 1073741852
- loongarch64 233
- ppc64 205
- 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/x64/madvise