Method lrs::file::File::advise

Advises the kernel that a range in the file will have a certain usage pattern.

Syntax

impl File {
    fn advise(&self, from: u64, to: Option<u64>, advice: Advice) -> Result<(), Errno>
}

Arguments

NameDescription
from

The start of the range.

to

The end of the range.

advice

The advice given to the kernel.

See also