Skip to main content

sys_bpf

Function sys_bpf 

Source
pub unsafe fn sys_bpf(cmd: c_int, attr: *const c_void, size: usize) -> c_long
Expand description

Raw syscall wrapper for Linux bpf(2).

§Safety

Caller must ensure attr points to an initialized memory buffer of at least size bytes matching the kernel’s ABI for command cmd, or NULL if the command expects no attributes.