pub struct QuiescentRegion { /* private fields */ }Expand description
Quiescent owner of an anonymous, page-rounded, writable memfd mapping.
Implementations§
Source§impl QuiescentRegion
impl QuiescentRegion
Sourcepub fn new(logical_len: usize) -> Result<Self, LinuxError>
pub fn new(logical_len: usize) -> Result<Self, LinuxError>
Allocates and zeroes an anonymous sealable memfd mapping.
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Returns whether the capability is empty (always false for valid values).
Sourcepub const fn logical_len(&self) -> usize
pub const fn logical_len(&self) -> usize
Requested logical layout length.
Sourcepub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
pub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Mutable quiescent initialization bytes covering the full capability.
Sourcepub fn prepare_writer(
self,
expected: ValidationExpectations,
topology: RegionSetLayout,
) -> Result<PreparedWriter, LinuxError>
pub fn prepare_writer( self, expected: ValidationExpectations, topology: RegionSetLayout, ) -> Result<PreparedWriter, LinuxError>
Validates, seals, and prepares the sole writer plus export capability.
Auto Trait Implementations§
impl !Send for QuiescentRegion
impl !Sync for QuiescentRegion
impl Freeze for QuiescentRegion
impl RefUnwindSafe for QuiescentRegion
impl Unpin for QuiescentRegion
impl UnsafeUnpin for QuiescentRegion
impl UnwindSafe for QuiescentRegion
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