Struct kernel::ksyscall::SyscallHandler [−] [src]

pub struct SyscallHandler {
    // some fields omitted
}

Methods

impl SyscallHandler

fn new(console: Arc<Console>) -> Self

Trait Implementations

impl HandleSyscall for SyscallHandler

fn exit_thread(&self, code: i32) -> Result<()>

fn write(&self, file: Handle, bytes: &[u8]) -> Result<usize>

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

fn alloc_pages(&self, len: usize) -> Result<*mut u8>

fn free_pages(&self, p: *mut u8) -> Result<bool>

fn open(&self, filename: &str) -> Result<Handle>

fn close(&self, handle: Handle) -> Result<()>

fn init_video_mode(&self, width: u16, height: u16, bpp: u8) -> Result<*mut u8>

fn spawn(&self, executable: &str, inherit: &[Handle]) -> Result<Handle>

fn wait_for_exit(&self, process: Handle) -> Result<i32>

fn create_shared_mem(&self) -> Result<Handle>

fn map_shared_mem(&self, block: Handle, len: usize, writable: bool) -> Result<*mut u8>