Struct memflow_kvm_ioctl::AutoMunmap
source · pub struct AutoMunmap { /* private fields */ }
Expand description
Structure assisting automatic memory map unmapping
It does not reference count on its own. Wrap it in Arc, or Rc for it to take place
Implementations§
source§impl AutoMunmap
impl AutoMunmap
sourcepub unsafe fn new(memslots: Vec<vm_memslot>) -> Self
pub unsafe fn new(memslots: Vec<vm_memslot>) -> Self
Create automatic unmapping
Safety
Drop implementation of this structure calls munmap on all mapped memory regions. vm_memslots have to be correct for the runnings process, or causes undefined bahaviour.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AutoMunmap
impl Send for AutoMunmap
impl Sync for AutoMunmap
impl Unpin for AutoMunmap
impl UnwindSafe for AutoMunmap
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