pub struct SyscallAllocFree<'a, 'b> { /* private fields */ }
Expand description
Dynamic memory allocation syscall called when the BPF program calls
sol_alloc_free_()
. The allocator is expected to allocate/free
from/to a given chunk of memory and enforce size restrictions. The
memory chunk is given to the allocator during allocator creation and
information about that memory (start address and size) is passed
to the VM to use for enforcement.
Implementations§
source§impl<'a, 'b> SyscallAllocFree<'a, 'b>
impl<'a, 'b> SyscallAllocFree<'a, 'b>
pub fn init( invoke_context: Rc<RefCell<&'a mut InvokeContext<'b>>> ) -> Box<dyn SyscallObject<BpfError> + 'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for SyscallAllocFree<'a, 'b>
impl<'a, 'b> !Send for SyscallAllocFree<'a, 'b>
impl<'a, 'b> !Sync for SyscallAllocFree<'a, 'b>
impl<'a, 'b> Unpin for SyscallAllocFree<'a, 'b>
impl<'a, 'b> !UnwindSafe for SyscallAllocFree<'a, 'b>
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