syscall.sh / sh / sync_file_range2
sync_file_range2
sync a file segment with disk
sys_sync_file_range2(int fd, unsigned int flags, loff_t offset, loff_t nbytes)
| number | 388 (0x184) |
|---|---|
| abi | common |
| entry point | sys_sync_file_range2 |
| since | Linux 6.10 |
| man page | sync_file_range2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 388, the syscall number |
r4 | int fd |
r5 | unsigned int flags |
r6 | loff_t offset |
r7 | loff_t nbytes |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/sync_file_range2