#[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

source§

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)

Performs copy-assignment from source. Read more
source§

impl Copy for bpf_attr_prog_load_t

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.