pub struct AddressSpaceMembarrierState { /* private fields */ }Expand description
Allocation-free snapshot of one address space’s membarrier state.
Implementations§
Source§impl AddressSpaceMembarrierState
impl AddressSpaceMembarrierState
Sourcepub const unsafe fn new(identity: AddressSpaceMembarrierId, bits: u32) -> Self
pub const unsafe fn new(identity: AddressSpaceMembarrierId, bits: u32) -> Self
Constructs a provider snapshot from one live shared mm identity.
§Safety
identity must obey AddressSpaceMembarrierId::from_raw, and bits
must contain only requested and ready bits produced by
MembarrierRegistration.
Sourcepub const fn identity(self) -> AddressSpaceMembarrierId
pub const fn identity(self) -> AddressSpaceMembarrierId
Returns the shared address-space identity.
Sourcepub const fn requested(self, registration: MembarrierRegistration) -> bool
pub const fn requested(self, registration: MembarrierRegistration) -> bool
Reports whether registration has begun, including its synchronization interval before the ready bit becomes visible.
Sourcepub const fn ready(self, registration: MembarrierRegistration) -> bool
pub const fn ready(self, registration: MembarrierRegistration) -> bool
Reports whether registration completed its rq synchronization.
Sourcepub const fn any_requested(self) -> bool
pub const fn any_requested(self) -> bool
Reports whether any scheduler-visible membarrier facility is active.
Trait Implementations§
Source§impl Clone for AddressSpaceMembarrierState
impl Clone for AddressSpaceMembarrierState
Source§fn clone(&self) -> AddressSpaceMembarrierState
fn clone(&self) -> AddressSpaceMembarrierState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddressSpaceMembarrierState
Source§impl Debug for AddressSpaceMembarrierState
impl Debug for AddressSpaceMembarrierState
impl Eq for AddressSpaceMembarrierState
impl StructuralPartialEq for AddressSpaceMembarrierState
Auto Trait Implementations§
impl Freeze for AddressSpaceMembarrierState
impl RefUnwindSafe for AddressSpaceMembarrierState
impl Send for AddressSpaceMembarrierState
impl Sync for AddressSpaceMembarrierState
impl Unpin for AddressSpaceMembarrierState
impl UnsafeUnpin for AddressSpaceMembarrierState
impl UnwindSafe for AddressSpaceMembarrierState
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