Re-exportsยง
use crate::bpf_intf::scx_userspace_arena_alloc_pages_args;๐use crate::bpf_intf::scx_userspace_arena_free_pages_args;๐use anyhow::Result;๐use buddy_system_allocator::Heap;๐use libbpf_rs::ProgramInput;๐use std::alloc::Layout;๐use std::ptr::NonNull;๐use std::sync::Mutex;๐
Structsยง
Traitsยง
- Allocator
- A subset of the features of
std::alloc::Allocatorwhich is experimental. Changed the error types toanyhow::Errorso we can forward libbpf_rs errors. This will likely need to be the empty structstd::alloc::AllocErrorif we migrate to the official trait (and panic accordingly).
Functionsยง
- call_
allocate_ โprogram - Helper to call an allocate program with the correct arguments.
- call_
deallocate_ โprogram - Helper to call a deallocate program with the correct arguments.
Type Aliasesยง
- Free
List ๐