pub trait CharacterDevice: BaseOperations + MountOperations {
// Provided method
fn readiness(&self, _interests: ReadyEvents) -> Result<Option<ReadyEvents>> { ... }
}Provided Methods§
Sourcefn readiness(&self, _interests: ReadyEvents) -> Result<Option<ReadyEvents>>
fn readiness(&self, _interests: ReadyEvents) -> Result<Option<ReadyEvents>>
Snapshot device readiness without consuming data. Return None to use
the VFS fallback, which reports the requested read/write directions
allowed by the opening’s access mode. I/O on such devices may still suspend.
Drivers overriding this with a precise probe must call
crate::notify_readiness after changes that can wake a poller.