Trait AbiModule

Source
pub trait AbiModule: 'static {
    // Required methods
    fn name() -> &'static str
       where Self: Sized;
    fn handle_syscall(
        &self,
        trapframe: &mut Trapframe,
    ) -> Result<usize, &'static str>;
}
Expand description

ABI module trait.

This trait defines the interface for ABI modules in the Scarlet kernel. ABI modules are responsible for handling system calls and providing the necessary functionality for different application binary interfaces.

Required Methods§

Source

fn name() -> &'static str
where Self: Sized,

Source

fn handle_syscall( &self, trapframe: &mut Trapframe, ) -> Result<usize, &'static str>

Implementors§