[][src]Function linux::syscall::fadvise

pub fn fadvise(fd: c_int, offset: loff_t, len: loff_t, advice: c_int) -> c_int

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

[argument, fd] The file descriptor.

[argument, offset] The start of the usage.

[argument, len] The length of the usage.

[argument, advice] The advice given to the kernel.

[return_value] Returns success or an error value.

= See also

  • link:man:fadvise(2)