Function call_allocate_program

Source
pub unsafe fn call_allocate_program(
    prog: &ProgramMut<'_>,
    layout: Layout,
) -> Result<NonNull<[u8]>>
Expand description

Helper to call an allocate program with the correct arguments.

§Safety

Caller must ensure that the BPF program has the expected signature and behaviour. Effectively, the program must have the same behaviour as scx_userspace_arena_allocate in “lib/sdt_alloc.bpf.c”, and ideally be that program.