pub struct DirectSyscall { /* private fields */ }Expand description
direct syscall invoker
holds the SSN and provides methods to invoke the syscall directly with varying argument counts
Implementations§
Source§impl DirectSyscall
impl DirectSyscall
Sourcepub fn from_entry(entry: &SyscallEntry) -> Self
pub fn from_entry(entry: &SyscallEntry) -> Self
create from syscall entry
Sourcepub fn from_table(table: &SyscallTable, name: &str) -> Result<Self>
pub fn from_table(table: &SyscallTable, name: &str) -> Result<Self>
create from syscall table lookup
Source§impl DirectSyscall
impl DirectSyscall
Sourcepub unsafe fn call0(&self) -> i32
pub unsafe fn call0(&self) -> i32
invoke syscall with 0 arguments
§Safety
caller must ensure the syscall is appropriate to call with 0 args
Sourcepub unsafe fn call5(
&self,
arg1: usize,
arg2: usize,
arg3: usize,
arg4: usize,
arg5: usize,
) -> i32
pub unsafe fn call5( &self, arg1: usize, arg2: usize, arg3: usize, arg4: usize, arg5: usize, ) -> i32
Auto Trait Implementations§
impl Freeze for DirectSyscall
impl RefUnwindSafe for DirectSyscall
impl Send for DirectSyscall
impl Sync for DirectSyscall
impl Unpin for DirectSyscall
impl UnwindSafe for DirectSyscall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more