⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

VirtualDevice

Trait VirtualDevice 

Source
pub trait VirtualDevice: Send {
    // Required methods
    fn handle_io(
        &mut self,
        port: u16,
        is_write: bool,
        data: &mut [u8],
    ) -> Result<(), VmError>;
    fn name(&self) -> &str;
    fn base_port(&self) -> u16;
    fn port_count(&self) -> u16;
}

Required Methods§

Source

fn handle_io( &mut self, port: u16, is_write: bool, data: &mut [u8], ) -> Result<(), VmError>

Source

fn name(&self) -> &str

Source

fn base_port(&self) -> u16

Source

fn port_count(&self) -> u16

Implementors§