Struct solana_rbpf::call_frames::CallFrames[][src]

pub struct CallFrames { /* fields omitted */ }

When BPF calls a function other then a syscall it expect the new function to be called in its own frame. CallFrames manages call frames

Implementations

impl CallFrames[src]

pub fn new(depth: usize, frame_size: usize) -> Self[src]

New call frame, depth indicates maximum call depth

pub fn get_region(&self) -> &MemoryRegion[src]

Get stack memory region

pub fn get_frame_pointers(&self) -> Vec<u64>[src]

Get the vm address of the beginning of each stack frame

pub fn get_stack_top(&self) -> u64[src]

Get the address of a frame’s top of stack

pub fn get_frame_index(&self) -> usize[src]

Get current call frame index, 0 is the root frame

pub fn get_max_frame_index(&self) -> usize[src]

Get max frame index

pub fn push<E: UserDefinedError>(
    &mut self,
    saved_reg: &[u64],
    return_ptr: usize
) -> Result<u64, EbpfError<E>>
[src]

Push a frame

pub fn pop<E: UserDefinedError>(
    &mut self
) -> Result<([u64; 4], u64, usize), EbpfError<E>>
[src]

Pop a frame

Trait Implementations

impl Clone for CallFrames[src]

impl Debug for CallFrames[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,