pub struct VolatilitySymbol { /* private fields */ }Expand description
A global symbol declared within the loaded volatility profile
Can be obtained via the symbol_from_name function.
Note: This type is opaque due to having an undefined layout and thus may only be accessed behind a reference.
Implementations§
Source§impl VolatilitySymbol
impl VolatilitySymbol
Sourcepub fn addr(&self) -> target_ptr_t
pub fn addr(&self) -> target_ptr_t
Get the address of the given symbol relative to the KASLR offset. Note that additional calculations may be required afterwards to handle per-CPU structs.
Sourcepub fn raw_value(&self) -> target_ptr_t
pub fn raw_value(&self) -> target_ptr_t
Get the raw value of the given symbol. Note that additional calculations may be required afterwards to handle per-CPU structs.
Auto Trait Implementations§
impl Freeze for VolatilitySymbol
impl RefUnwindSafe for VolatilitySymbol
impl !Send for VolatilitySymbol
impl !Sync for VolatilitySymbol
impl !Unpin for VolatilitySymbol
impl UnwindSafe for VolatilitySymbol
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