[][src]Struct kernel::virtio::Buf

#[repr(C)]pub struct Buf {
    pub valid: bool,
    pub disk: i32,
    pub dev: u32,
    pub blockno: u32,
    pub data: [u8; 1024],
}

VIRTIO Buffer

Fields

valid: booldisk: i32

TODO: this can be removed

dev: u32

device ID

blockno: u32

block number

data: [u8; 1024]

buffer data

Implementations

impl Buf[src]

pub const fn new() -> Self[src]