Struct solana_rbpf::vm::SyscallRegistry [−][src]
pub struct SyscallRegistry { /* fields omitted */ }
Expand description
Holds the syscall function pointers of an Executable
Implementations
pub fn register_syscall_by_hash<E: UserDefinedError, O: SyscallObject<E>>(
&mut self,
hash: u32,
function: SyscallFunction<E, &mut O>
) -> Result<(), EbpfError<E>>
pub fn register_syscall_by_hash<E: UserDefinedError, O: SyscallObject<E>>(
&mut self,
hash: u32,
function: SyscallFunction<E, &mut O>
) -> Result<(), EbpfError<E>>
Register a syscall function by its symbol hash
pub fn register_syscall_by_name<E: UserDefinedError, O: SyscallObject<E>>(
&mut self,
name: &[u8],
function: SyscallFunction<E, &mut O>
) -> Result<(), EbpfError<E>>
pub fn register_syscall_by_name<E: UserDefinedError, O: SyscallObject<E>>(
&mut self,
name: &[u8],
function: SyscallFunction<E, &mut O>
) -> Result<(), EbpfError<E>>
Register a syscall function by its symbol name
Get a symbol’s function pointer and context object slot
Get a function pointer’s and context object slot
Get the number of registered syscalls
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.