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

Create a new VirtIOBlock driver with VIRTIO0 base_addr for virtio_blk device

Trait Implementations

Read data form block to buffer

Write data from buffer to block

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.