syscall.sh / x64 / fsync
fsync
synchronize a file's in-core state with storage device
sys_fsync(unsigned int fd)
| number | 74 (0x4a) |
|---|---|
| abi | common |
| entry point | sys_fsync |
| since | Linux 3.3 |
| man page | fsync(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 74, the syscall number |
rdi | unsigned int fd |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 118
- arm64 82
- arm 118
- riscv64 82
- x32 1073741898
- loongarch64 82
- ppc64 118
- ppc 118
- s390x 118
- mips64 5072
- mipsn32 6072
- mipso32 4118
- alpha 95
- arc 82
- csky 82
- hexagon 82
- m68k 118
- microblaze 118
- nios2 82
- openrisc 82
- parisc 118
- sh 118
- sparc 95
- sparc64 95
- xtensa 26
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/fsync