Trait kdevice::block::BlockBus [−][src]
pub trait BlockBus { fn probe(&mut self) -> Result<()>; fn read(&mut self, bno: usize, buf: &mut [u8]) -> Result<()>; fn write(&mut self, bno: usize, buf: &[u8]) -> Result<()>; }
Expand description
Block device trait that you need to implement for each slot.
For each instance, all three methods are guaranteed to becalled exlusively.