pub struct Splice { /* private fields */ }
Expand description
Splice data to/from a pipe, equivalent to splice(2)
.
if fd_in
refers to a pipe, off_in
must be -1
;
The description of off_in
also applied to off_out
.
Implementations§
source§impl Splice
impl Splice
pub fn new( fd_in: impl UseFixed, off_in: i64, fd_out: impl UseFixed, off_out: i64, len: u32 ) -> Self
sourcepub const CODE: u8 = 30u8
pub const CODE: u8 = 30u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.