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)
number84 (0x54)
abicommon
entry pointsys_sync_file_range
sinceLinux 4.15
man pagesync_file_range(2)
sourceelixir.bootlin.com

Registers

registervalue
a784, the syscall number
a0int fd
a1loff_t offset
a2loff_t nbytes
a3unsigned int flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/sync_file_range