[][src]Struct kernel::file::fsfile::FsFile

pub struct FsFile {
    offset: usize,
    sz: usize,
    rw_offset: Mutex<(usize, usize)>,
    readable: bool,
    writable: bool,
}

Fields

offset: usizesz: usizerw_offset: Mutex<(usize, usize)>readable: boolwritable: bool

Implementations

impl FsFile[src]

fn get_file_info(virtio: &mut VirtIO, path: &str) -> Option<(usize, usize)>[src]

pub fn open(path: &str, mode: usize) -> Self[src]

pub fn read(&self, content: &mut [u8]) -> i32[src]

pub fn write(&self, content: &[u8]) -> i32[src]