pub struct Fadvise { /* private fields */ }
Expand description
Predeclare an access pattern for file data, equivalent to posix_fadvise(2)
.
Implementations§
source§impl Fadvise
impl Fadvise
pub fn new(fd: impl UseFixed, len: off_t, advice: i32) -> Self
sourcepub const CODE: u8 = 24u8
pub const CODE: u8 = 24u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.