pub struct SyscallTable { /* private fields */ }Expand description
syscall lookup table
Implementations§
Source§impl SyscallTable
impl SyscallTable
Sourcepub fn get(&self, name: &str) -> Option<&SyscallEntry>
pub fn get(&self, name: &str) -> Option<&SyscallEntry>
get syscall by name
Sourcepub fn get_by_hash(&self, hash: u32) -> Option<&SyscallEntry>
pub fn get_by_hash(&self, hash: u32) -> Option<&SyscallEntry>
get syscall by hash
Sourcepub fn get_by_ssn(&self, ssn: u16) -> Option<&SyscallEntry>
pub fn get_by_ssn(&self, ssn: u16) -> Option<&SyscallEntry>
get syscall by SSN
Sourcepub fn entries(&self) -> &[SyscallEntry]
pub fn entries(&self) -> &[SyscallEntry]
get all entries
Sourcepub fn get_syscall_address(&self, name: &str) -> Option<usize>
pub fn get_syscall_address(&self, name: &str) -> Option<usize>
get syscall instruction address for indirect calls
Sourcepub fn find_by_address(&self, addr: usize) -> Option<&SyscallEntry>
pub fn find_by_address(&self, addr: usize) -> Option<&SyscallEntry>
find syscall containing address (for detecting which syscall is hooked)
Sourcepub fn require(&self, name: &str) -> Result<&SyscallEntry>
pub fn require(&self, name: &str) -> Result<&SyscallEntry>
get syscall or return error
Sourcepub fn require_by_hash(&self, hash: u32) -> Result<&SyscallEntry>
pub fn require_by_hash(&self, hash: u32) -> Result<&SyscallEntry>
get syscall by hash or return error
Auto Trait Implementations§
impl Freeze for SyscallTable
impl RefUnwindSafe for SyscallTable
impl Send for SyscallTable
impl Sync for SyscallTable
impl Unpin for SyscallTable
impl UnwindSafe for SyscallTable
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