Struct nc::types::bpf_attr_prog_load_t[][src]

#[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: u32insns: u64license: u64log_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: u32prog_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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.