pub unsafe fn call_deallocate_program(
prog: &ProgramMut<'_>,
addr: NonNull<u8>,
layout: Layout,
)
Expand description
Helper to call a deallocate 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_deallocate
in
“lib/sdt_alloc.bpf.c”, and ideally be that program.