Function lrs::syscall::fsync

Transfers the kernel state of a file descriptor to the disk.

Syntax

fn fsync(fd: i32) -> i32

Arguments

NameDescription
fd

The file descriptor to be synchronized.

Return value

Returns success or an error value.

See also