Trait solana_rbpf::vm::SyscallObject[][src]

pub trait SyscallObject<E: UserDefinedError> {
    fn call(
        &mut self,
        arg1: u64,
        arg2: u64,
        arg3: u64,
        arg4: u64,
        arg5: u64,
        memory_mapping: &MemoryMapping<'_>,
        result: &mut ProgramResult<E>
    ); }
Expand description

Syscall with context

Required methods

fn call(
    &mut self,
    arg1: u64,
    arg2: u64,
    arg3: u64,
    arg4: u64,
    arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut ProgramResult<E>
)
[src]

Call the syscall function

Implementors

impl SyscallObject<UserError> for BpfGatherBytes[src]

fn call(
    &mut self,
    arg1: u64,
    arg2: u64,
    arg3: u64,
    arg4: u64,
    arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result
)
[src]

impl SyscallObject<UserError> for BpfMemFrob[src]

fn call(
    &mut self,
    vm_addr: u64,
    len: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result
)
[src]

impl SyscallObject<UserError> for BpfRand[src]

fn call(
    &mut self,
    min: u64,
    max: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result
)
[src]

impl SyscallObject<UserError> for BpfSqrtI[src]

fn call(
    &mut self,
    arg1: u64,
    _arg2: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result
)
[src]

impl SyscallObject<UserError> for BpfStrCmp[src]

fn call(
    &mut self,
    arg1: u64,
    arg2: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    memory_mapping: &MemoryMapping<'_>,
    result: &mut Result
)
[src]

impl SyscallObject<UserError> for BpfTimeGetNs[src]

fn call(
    &mut self,
    _arg1: u64,
    _arg2: u64,
    _arg3: u64,
    _arg4: u64,
    _arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result
)
[src]

impl SyscallObject<UserError> for BpfTracePrintf[src]

fn call(
    &mut self,
    _arg1: u64,
    _arg2: u64,
    arg3: u64,
    arg4: u64,
    arg5: u64,
    _memory_mapping: &MemoryMapping<'_>,
    result: &mut Result
)
[src]