Struct nc::types::bpf_attr_prog_load_t
source · #[repr(C)]pub struct bpf_attr_prog_load_t {Show 19 fields
pub prog_type: u32,
pub insn_cnt: u32,
pub insns: u64,
pub license: u64,
pub log_level: u32,
pub log_size: u32,
pub log_buf: u64,
pub kern_version: u32,
pub prog_flags: u32,
pub prog_name: [u8; 16],
pub prog_ifindex: u32,
pub expected_attach_type: u32,
pub prog_btf_fd: u32,
pub func_info_rec_size: u32,
pub func_info: u64,
pub func_info_cnt: u32,
pub line_info_rec_size: u32,
pub line_info: u64,
pub line_info_cnt: u32,
}
Expand description
anonymous struct used by BPF_PROG_LOAD
command
Fields§
§prog_type: u32
one of enum bpf_prog_type
insn_cnt: u32
§insns: u64
§license: u64
§log_level: u32
verbosity level of verifier
log_size: u32
size of user buffer
log_buf: u64
user supplied buffer
kern_version: u32
not used
prog_flags: u32
§prog_name: [u8; 16]
§prog_ifindex: u32
ifindex of netdev to prep for
expected_attach_type: u32
For some prog types expected attach type must be known at load time to verify attach type specific parts of prog (context accesses, allowed helpers, etc).
prog_btf_fd: u32
fd pointing to BTF type data
func_info_rec_size: u32
userspace bpf_func_info
size
func_info: u64
func info
func_info_cnt: u32
number of bpf_func_info
records
line_info_rec_size: u32
userspace bpf_line_info
size
line_info: u64
line info
line_info_cnt: u32
number of bpf_line_info
records
Trait Implementations§
source§impl Clone for bpf_attr_prog_load_t
impl Clone for bpf_attr_prog_load_t
source§fn clone(&self) -> bpf_attr_prog_load_t
fn clone(&self) -> bpf_attr_prog_load_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for bpf_attr_prog_load_t
Auto Trait Implementations§
impl Freeze for bpf_attr_prog_load_t
impl RefUnwindSafe for bpf_attr_prog_load_t
impl Send for bpf_attr_prog_load_t
impl Sync for bpf_attr_prog_load_t
impl Unpin for bpf_attr_prog_load_t
impl UnwindSafe for bpf_attr_prog_load_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more