pub struct Btf<'a> { /* private fields */ }Implementations§
Source§impl<'a> Btf<'a>
impl<'a> Btf<'a>
pub fn ptr_sz(&self) -> u32
pub fn types(&self) -> &[BtfType<'_>]
pub fn type_by_id(&self, type_id: u32) -> &BtfType<'_>
pub fn type_cnt(&self) -> u32
pub fn has_ext(&self) -> bool
pub fn func_secs(&self) -> &[BtfExtSection<'_, BtfExtFunc>]
pub fn line_secs(&self) -> &[BtfExtSection<'_, BtfExtLine<'_>>]
pub fn core_reloc_secs(&self) -> &[BtfExtSection<'_, BtfExtCoreReloc<'_>>]
pub fn get_size_of(&self, type_id: u32) -> u32
pub fn get_align_of(&self, type_id: u32) -> u32
pub fn skip_mods(&self, type_id: u32) -> u32
pub fn skip_mods_and_typedefs(&self, type_id: u32) -> u32
pub fn load(elf: &File<'a>) -> BtfResult<Btf<'a>>
pub fn type_size(t: &BtfType<'_>) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Btf<'a>
impl<'a> RefUnwindSafe for Btf<'a>
impl<'a> Send for Btf<'a>
impl<'a> Sync for Btf<'a>
impl<'a> Unpin for Btf<'a>
impl<'a> UnwindSafe for Btf<'a>
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