Function lrs::syscall::readahead

Initiates readahead for a file descriptor in the kernel.

Syntax

fn readahead(fd: i32, offset: i64, count: u64) -> i64

Arguments

NameDescription
fd

The affected file descriptor.

offset

The start of the readahead.

count

The number of bytes to read.

Return value

Returns succcess or an error value.

See also