Function lrs::syscall::fallocate

Allocates memory for a file descriptor.

Syntax

fn fallocate(fd: i32, mode: i32, base: i64, len: i64) -> i32

Arguments

NameDescription
fd

The affected file descriptor.

mode

The mode of the allocation.

base

The base of the allocation.

len

The length of the allocation.

Return value

Returns success or an error value.

See also