Struct kdmp_parser::KernelDumpParser
source · pub struct KernelDumpParser<'reader> { /* private fields */ }
Expand description
A kernel dump parser that gives access to the physical memory space stored in the dump. It also offers virtual to physical memory translation as well as a virtual read facility.
Implementations§
source§impl<'reader> KernelDumpParser<'reader>
impl<'reader> KernelDumpParser<'reader>
sourcepub fn with_reader(
reader: impl Reader + 'reader
) -> Result<Self, KdmpParserError>
pub fn with_reader( reader: impl Reader + 'reader ) -> Result<Self, KdmpParserError>
Create an instance from a file path. This memory maps the file and parses it.
pub fn new<P>(dump_path: &P) -> Result<Self, KdmpParserError>
pub fn physmem(&self) -> impl ExactSizeIterator<Item = (Gpa, u64)> + '_
sourcepub fn exception_record(&self) -> &ExceptionRecord64
pub fn exception_record(&self) -> &ExceptionRecord64
Get the exception record.
sourcepub fn context_record(&self) -> &Context
pub fn context_record(&self) -> &Context
Get the context record.
sourcepub fn phys_read(&self, gpa: Gpa, buffer: &mut [u8]) -> Option<usize>
pub fn phys_read(&self, gpa: Gpa, buffer: &mut [u8]) -> Option<usize>
Read physical memory starting at gpa
into a buffer
.
sourcepub fn phys_read_exact(&self, gpa: Gpa, buffer: &mut [u8]) -> Option<()>
pub fn phys_read_exact(&self, gpa: Gpa, buffer: &mut [u8]) -> Option<()>
Read an exact amount of physical memory starting at gpa
into a
buffer
.
sourcepub fn phys_read8(&self, gpa: Gpa) -> Option<u64>
pub fn phys_read8(&self, gpa: Gpa) -> Option<u64>
Read a u64
in physical memory at gpa
.
sourcepub fn virt_read(&self, gva: Gva, buffer: &mut [u8]) -> Option<usize>
pub fn virt_read(&self, gva: Gva, buffer: &mut [u8]) -> Option<usize>
Read virtual memory starting at gva
into a buffer
.
Trait Implementations§
Auto Trait Implementations§
impl<'reader> !Freeze for KernelDumpParser<'reader>
impl<'reader> !RefUnwindSafe for KernelDumpParser<'reader>
impl<'reader> !Send for KernelDumpParser<'reader>
impl<'reader> !Sync for KernelDumpParser<'reader>
impl<'reader> Unpin for KernelDumpParser<'reader>
impl<'reader> !UnwindSafe for KernelDumpParser<'reader>
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