Struct swap::userfaultfd::DeadUffdCheckerImpl
source · pub struct DeadUffdCheckerImpl {
dummy_mmap: MemoryMapping,
}
Expand description
Check whether the process for the Userfaultfd is dead or not.
DeadUffdCheckerImpl uses UFFD_ZERO
on a dummy mmap page to check the liveness.
This must keep alive on the main process to make the dummy mmap present in all descendant processes.
Fields§
§dummy_mmap: MemoryMapping
Implementations§
source§impl DeadUffdCheckerImpl
impl DeadUffdCheckerImpl
sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Creates DeadUffdCheckerImpl.
Trait Implementations§
source§impl DeadUffdChecker for DeadUffdCheckerImpl
impl DeadUffdChecker for DeadUffdCheckerImpl
source§fn register(&self, uffd: &Userfaultfd) -> Result<()>
fn register(&self, uffd: &Userfaultfd) -> Result<()>
Register the Userfaultfd
source§fn is_dead(&self, uffd: &Userfaultfd) -> bool
fn is_dead(&self, uffd: &Userfaultfd) -> bool
Check whether the Userfaultfd is dead or not.
Auto Trait Implementations§
impl RefUnwindSafe for DeadUffdCheckerImpl
impl Send for DeadUffdCheckerImpl
impl Sync for DeadUffdCheckerImpl
impl Unpin for DeadUffdCheckerImpl
impl UnwindSafe for DeadUffdCheckerImpl
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