Skip to main content

Module alloc

Module alloc 

Source

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ยง

HeapAllocator

Traitsยง

Allocator
A subset of the features of std::alloc::Allocator which is experimental. Changed the error types to anyhow::Error so we can forward libbpf_rs errors. This will likely need to be the empty struct std::alloc::AllocError if 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ยง

FreeList ๐Ÿ”’