pub(super) struct Vdso {
load_addr: *const Elf_Ehdr,
load_end: *const c_void,
pv_offset: usize,
symtab: *const Elf_Sym,
symstrings: *const u8,
bucket: *const u32,
chain: *const u32,
nbucket: u32,
versym: *const u16,
verdef: *const Elf_Verdef,
}
Fields§
§load_addr: *const Elf_Ehdr
§load_end: *const c_void
§pv_offset: usize
§symtab: *const Elf_Sym
§symstrings: *const u8
§bucket: *const u32
§chain: *const u32
§nbucket: u32
§versym: *const u16
§verdef: *const Elf_Verdef
Implementations§
source§impl Vdso
impl Vdso
sourcepub(super) fn new() -> Option<Self>
pub(super) fn new() -> Option<Self>
Parse the vDSO.
Returns None
if the vDSO can’t be located or if it doesn’t conform to
our expectations.
sourcepub(super) fn sym(&self, version: &CStr, name: &CStr) -> *mut c_void
pub(super) fn sym(&self, version: &CStr, name: &CStr) -> *mut c_void
Look up a symbol in the vDSO.
Auto Trait Implementations§
impl Freeze for Vdso
impl RefUnwindSafe for Vdso
impl !Send for Vdso
impl !Sync for Vdso
impl Unpin for Vdso
impl UnwindSafe for Vdso
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