syscall.sh / riscv64 / sync_file_range
sync_file_range
sync a file segment with disk
sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, unsigned int flags)
| number | 84 (0x54) |
|---|---|
| abi | common |
| entry point | sys_sync_file_range |
| since | Linux 4.15 |
| man page | sync_file_range(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 84, the syscall number |
a0 | int fd |
a1 | loff_t offset |
a2 | loff_t nbytes |
a3 | unsigned int flags |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 277
- x86 314
- arm64 84
- x32 1073742101
- loongarch64 84
- s390x 307
- mips64 5264
- mipsn32 6268
- mipso32 4305
- alpha 469
- arc 84
- csky 84
- hexagon 84
- m68k 307
- microblaze 314
- nios2 84
- openrisc 84
- parisc 292
- sh 314
- sparc 255
- sparc64 255
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/sync_file_range