pub struct PerCpuRegion { /* private fields */ }Expand description
Platform-owned raw storage geometry for runtime per-CPU areas.
Implementations§
Source§impl PerCpuRegion
impl PerCpuRegion
Sourcepub const fn new(
runtime_base: NonNull<u8>,
area_stride: usize,
area_count: NonZeroU32,
) -> Self
pub const fn new( runtime_base: NonNull<u8>, area_stride: usize, area_count: NonZeroU32, ) -> Self
Creates raw runtime geometry to be validated by initialize_layout.
Sourcepub fn runtime_base(self) -> usize
pub fn runtime_base(self) -> usize
Returns CPU zero’s runtime base.
Sourcepub const fn area_stride(self) -> usize
pub const fn area_stride(self) -> usize
Returns the byte stride between adjacent areas.
Sourcepub const fn area_count(self) -> NonZeroU32
pub const fn area_count(self) -> NonZeroU32
Returns the number of runtime areas.
Trait Implementations§
Source§impl Clone for PerCpuRegion
impl Clone for PerCpuRegion
Source§fn clone(&self) -> PerCpuRegion
fn clone(&self) -> PerCpuRegion
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 PerCpuRegion
Source§impl Debug for PerCpuRegion
impl Debug for PerCpuRegion
impl Eq for PerCpuRegion
Source§impl PartialEq for PerCpuRegion
impl PartialEq for PerCpuRegion
impl Send for PerCpuRegion
impl StructuralPartialEq for PerCpuRegion
impl Sync for PerCpuRegion
Auto Trait Implementations§
impl Freeze for PerCpuRegion
impl RefUnwindSafe for PerCpuRegion
impl Unpin for PerCpuRegion
impl UnsafeUnpin for PerCpuRegion
impl UnwindSafe for PerCpuRegion
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