Struct os::drivers::block::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§
source§impl VirtIOBlock
impl VirtIOBlock
Trait Implementations§
source§impl BlockDevice for VirtIOBlock
impl BlockDevice for VirtIOBlock
source§fn 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
source§fn 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 !Freeze for VirtIOBlock
impl !RefUnwindSafe for VirtIOBlock
impl Send for VirtIOBlock
impl Sync for VirtIOBlock
impl Unpin for VirtIOBlock
impl !UnwindSafe for VirtIOBlock
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more