Struct libbpf_sys::bpf_load_program_attr
source · [−]#[repr(C)]pub struct bpf_load_program_attr {Show 18 fields
pub prog_type: bpf_prog_type,
pub expected_attach_type: bpf_attach_type,
pub name: *const c_char,
pub insns: *const bpf_insn,
pub insns_cnt: size_t,
pub license: *const c_char,
pub __bindgen_anon_1: bpf_load_program_attr__bindgen_ty_1,
pub __bindgen_anon_2: bpf_load_program_attr__bindgen_ty_2,
pub prog_btf_fd: __u32,
pub func_info_rec_size: __u32,
pub func_info: *const c_void,
pub func_info_cnt: __u32,
pub line_info_rec_size: __u32,
pub line_info: *const c_void,
pub line_info_cnt: __u32,
pub log_level: __u32,
pub prog_flags: __u32,
pub __bindgen_padding_0: [u8; 4],
}
Fields
prog_type: bpf_prog_type
expected_attach_type: bpf_attach_type
name: *const c_char
insns: *const bpf_insn
insns_cnt: size_t
license: *const c_char
__bindgen_anon_1: bpf_load_program_attr__bindgen_ty_1
__bindgen_anon_2: bpf_load_program_attr__bindgen_ty_2
prog_btf_fd: __u32
func_info_rec_size: __u32
func_info: *const c_void
func_info_cnt: __u32
line_info_rec_size: __u32
line_info: *const c_void
line_info_cnt: __u32
log_level: __u32
prog_flags: __u32
__bindgen_padding_0: [u8; 4]
Trait Implementations
sourceimpl Clone for bpf_load_program_attr
impl Clone for bpf_load_program_attr
sourcefn clone(&self) -> bpf_load_program_attr
fn clone(&self) -> bpf_load_program_attr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for bpf_load_program_attr
impl Default for bpf_load_program_attr
impl Copy for bpf_load_program_attr
Auto Trait Implementations
impl RefUnwindSafe for bpf_load_program_attr
impl !Send for bpf_load_program_attr
impl !Sync for bpf_load_program_attr
impl Unpin for bpf_load_program_attr
impl UnwindSafe for bpf_load_program_attr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more