syscall.sh / sh / fadvise64_64
fadvise64_64
predeclare an access pattern for file data
sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice)
| number | 272 (0x110) |
|---|---|
| abi | common |
| entry point | sys_fadvise64_64 |
| since | Linux 5.0 |
| man page | fadvise64_64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 272, the syscall number |
r4 | int fd |
r5 | loff_t offset |
r6 | loff_t len |
r7 | int advice |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 272
- ppc 254
- arc 223
- csky 223
- hexagon 223
- m68k 267
- microblaze 272
- nios2 223
- openrisc 223
- parisc 236
- sparc 210
- sparc64 210
- xtensa 63
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/fadvise64_64