pub struct KernelTrapFrame<'a> { /* private fields */ }Expand description
Lifetime-bound view of a kernel-origin x86 trap frame.
The view deliberately provides no mutable dereference to the assembly
image. Probe/debug integrations can edit a copy and apply it through
Self::apply_registers, which preserves the trap origin and vector
metadata.
Implementations§
Source§impl<'a> KernelTrapFrame<'a>
impl<'a> KernelTrapFrame<'a>
Sourcepub const fn origin(&self) -> TrapOrigin
pub const fn origin(&self) -> TrapOrigin
Returns the privilege domain represented by this view.
Sourcepub fn snapshot(&self) -> TrapFrame
pub fn snapshot(&self) -> TrapFrame
Copies the saved register image for inspection or probe emulation.
Sourcepub fn apply_registers(&mut self, updated: &TrapFrame)
pub fn apply_registers(&mut self, updated: &TrapFrame)
Applies task-register changes while preserving trap-origin metadata.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for KernelTrapFrame<'a>
impl<'a> !Sync for KernelTrapFrame<'a>
impl<'a> !UnwindSafe for KernelTrapFrame<'a>
impl<'a> Freeze for KernelTrapFrame<'a>
impl<'a> RefUnwindSafe for KernelTrapFrame<'a>
impl<'a> Unpin for KernelTrapFrame<'a>
impl<'a> UnsafeUnpin for KernelTrapFrame<'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