Function lrs::syscall::fadvise

Advises the kernel of a certain usage pattern of a file descriptor.

Syntax

fn fadvise(fd: i32, offset: i64, len: i64, advice: i32) -> i32

Arguments

NameDescription
fd

The file descriptor.

offset

The start of the usage.

len

The length of the usage.

advice

The advice given to the kernel.

Return value

Returns success or an error value.

See also