Struct rustix_uring::opcode::Fadvise
source · 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: Advice) -> Self
sourcepub const CODE: IoringOp = _
pub const CODE: IoringOp = _
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.