Struct os::drivers::block::virtio_blk::VirtIOBlock
source · [−]pub struct VirtIOBlock(UPSafeCell<VirtIOBlk<'static, VirtioHal>>);Expand description
VirtIOBlock device driver strcuture for virtio_blk device
Tuple Fields
0: UPSafeCell<VirtIOBlk<'static, VirtioHal>>Implementations
sourceimpl VirtIOBlock
impl VirtIOBlock
Trait Implementations
sourceimpl BlockDevice for VirtIOBlock
impl BlockDevice for VirtIOBlock
sourcefn read_block(&self, block_id: usize, buf: &mut [u8])
fn read_block(&self, block_id: usize, buf: &mut [u8])
Read a block from the virtio_blk device
sourcefn write_block(&self, block_id: usize, buf: &[u8])
fn write_block(&self, block_id: usize, buf: &[u8])
Write a block to the block device.
Auto Trait Implementations
impl !RefUnwindSafe for VirtIOBlock
impl Send for VirtIOBlock
impl Sync for VirtIOBlock
impl Unpin for VirtIOBlock
impl !UnwindSafe for VirtIOBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more