Function lrs::syscall::splice

Copies data between two file descriptors.

Syntax

fn splice(fd_in: i32, off_in: Option<&mut u64>, fd_out: i32, off_out: Option<&mut u64>, len: usize, flags: u32) -> i64

Arguments

NameDescription
fd_in

The file to copy from.

off_in

The position to copy from.

fd_out

The file to copy to.

off_out

The position to copy to.

len

The number of bytes to copy.

flags

Flags to use while copying.

Return value

Returns the number of bytes copied.

See also