syscall::scheme

Trait Scheme

source
pub trait Scheme {
Show 25 methods // Provided methods fn handle(&self, packet: &mut Packet) { ... } fn open( &self, path: &str, flags: usize, uid: u32, gid: u32, ) -> Result<usize> { ... } fn xopen( &self, path: &str, flags: usize, ctx: &CallerCtx, ) -> Result<OpenResult> { ... } fn chmod(&self, path: &str, mode: u16, uid: u32, gid: u32) -> Result<usize> { ... } fn rmdir(&self, path: &str, uid: u32, gid: u32) -> Result<usize> { ... } fn unlink(&self, path: &str, uid: u32, gid: u32) -> Result<usize> { ... } fn dup(&self, old_id: usize, buf: &[u8]) -> Result<usize> { ... } fn xdup( &self, old_id: usize, buf: &[u8], ctx: &CallerCtx, ) -> Result<OpenResult> { ... } fn read(&self, id: usize, buf: &mut [u8]) -> Result<usize> { ... } fn write(&self, id: usize, buf: &[u8]) -> Result<usize> { ... } fn seek(&self, id: usize, pos: isize, whence: usize) -> Result<isize> { ... } fn fchmod(&self, id: usize, mode: u16) -> Result<usize> { ... } fn fchown(&self, id: usize, uid: u32, gid: u32) -> Result<usize> { ... } fn fcntl(&self, id: usize, cmd: usize, arg: usize) -> Result<usize> { ... } fn fevent(&self, id: usize, flags: EventFlags) -> Result<EventFlags> { ... } fn fpath(&self, id: usize, buf: &mut [u8]) -> Result<usize> { ... } fn frename( &self, id: usize, path: &str, uid: u32, gid: u32, ) -> Result<usize> { ... } fn fstat(&self, id: usize, stat: &mut Stat) -> Result<usize> { ... } fn fstatvfs(&self, id: usize, stat: &mut StatVfs) -> Result<usize> { ... } fn fsync(&self, id: usize) -> Result<usize> { ... } fn ftruncate(&self, id: usize, len: usize) -> Result<usize> { ... } fn futimens(&self, id: usize, times: &[TimeSpec]) -> Result<usize> { ... } fn close(&self, id: usize) -> Result<usize> { ... } fn mmap_prep( &self, id: usize, offset: u64, size: usize, flags: MapFlags, ) -> Result<usize> { ... } fn munmap( &self, id: usize, offset: u64, size: usize, flags: MunmapFlags, ) -> Result<usize> { ... }
}

Provided Methods§

source

fn handle(&self, packet: &mut Packet)

source

fn open(&self, path: &str, flags: usize, uid: u32, gid: u32) -> Result<usize>

source

fn xopen(&self, path: &str, flags: usize, ctx: &CallerCtx) -> Result<OpenResult>

source

fn chmod(&self, path: &str, mode: u16, uid: u32, gid: u32) -> Result<usize>

source

fn rmdir(&self, path: &str, uid: u32, gid: u32) -> Result<usize>

source

fn dup(&self, old_id: usize, buf: &[u8]) -> Result<usize>

source

fn xdup(&self, old_id: usize, buf: &[u8], ctx: &CallerCtx) -> Result<OpenResult>

source

fn read(&self, id: usize, buf: &mut [u8]) -> Result<usize>

source

fn write(&self, id: usize, buf: &[u8]) -> Result<usize>

source

fn seek(&self, id: usize, pos: isize, whence: usize) -> Result<isize>

source

fn fchmod(&self, id: usize, mode: u16) -> Result<usize>

source

fn fchown(&self, id: usize, uid: u32, gid: u32) -> Result<usize>

source

fn fcntl(&self, id: usize, cmd: usize, arg: usize) -> Result<usize>

source

fn fevent(&self, id: usize, flags: EventFlags) -> Result<EventFlags>

source

fn fpath(&self, id: usize, buf: &mut [u8]) -> Result<usize>

source

fn frename(&self, id: usize, path: &str, uid: u32, gid: u32) -> Result<usize>

source

fn fstat(&self, id: usize, stat: &mut Stat) -> Result<usize>

source

fn fstatvfs(&self, id: usize, stat: &mut StatVfs) -> Result<usize>

source

fn fsync(&self, id: usize) -> Result<usize>

source

fn ftruncate(&self, id: usize, len: usize) -> Result<usize>

source

fn futimens(&self, id: usize, times: &[TimeSpec]) -> Result<usize>

source

fn close(&self, id: usize) -> Result<usize>

source

fn mmap_prep( &self, id: usize, offset: u64, size: usize, flags: MapFlags, ) -> Result<usize>

source

fn munmap( &self, id: usize, offset: u64, size: usize, flags: MunmapFlags, ) -> Result<usize>

Implementors§