pub struct VmmKernel<'a> { /* private fields */ }Expand description
Kernel information.
The kernel struct gives easy access to:
- The system process (pid 4).
- Kernel build number.
- Kernel debug symbols (nt).
§Created By
§Examples
println!("{}", vmm.kernel().process());
println!("{}", vmm.kernel().build());
let kernel = vmm.kernel();
let pdb = kernel.pdb();
println!("{pdb}");Implementations§
Source§impl VmmKernel<'_>
impl VmmKernel<'_>
Sourcepub fn build(&self) -> u32
pub fn build(&self) -> u32
Get the kernel build numer.
§Examples
// Retrieve and print the kernel build number.
println!("{}", vmm.kernel().build());Sourcepub fn process(&self) -> VmmProcess<'_>
pub fn process(&self) -> VmmProcess<'_>
Get the System process (pid 4).
§Examples
// Retrieve and print the kernel build number.
let systemprocess = vmm.kernel().process();Trait Implementations§
impl<'a> Copy for VmmKernel<'a>
Auto Trait Implementations§
impl<'a> Freeze for VmmKernel<'a>
impl<'a> RefUnwindSafe for VmmKernel<'a>
impl<'a> Send for VmmKernel<'a>
impl<'a> Sync for VmmKernel<'a>
impl<'a> Unpin for VmmKernel<'a>
impl<'a> UnwindSafe for VmmKernel<'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