pub struct PerCpuLayout { /* private fields */ }Expand description
Frozen process-wide layout of initialized runtime per-CPU areas.
Implementations§
Source§impl PerCpuLayout
impl PerCpuLayout
Sourcepub const fn region(&self) -> PerCpuRegion
pub const fn region(&self) -> PerCpuRegion
Returns the platform-owned region geometry.
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) -> u32
pub const fn area_count(&self) -> u32
Returns the number of initialized areas.
Sourcepub fn area(&self, cpu_index: CpuIndex) -> Result<PerCpuArea, PerCpuError>
pub fn area(&self, cpu_index: CpuIndex) -> Result<PerCpuArea, PerCpuError>
Resolves one CPU area without consulting architecture registers.
Trait Implementations§
Source§impl Clone for PerCpuLayout
impl Clone for PerCpuLayout
Source§fn clone(&self) -> PerCpuLayout
fn clone(&self) -> PerCpuLayout
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 PerCpuLayout
Source§impl Debug for PerCpuLayout
impl Debug for PerCpuLayout
impl Eq for PerCpuLayout
Source§impl PartialEq for PerCpuLayout
impl PartialEq for PerCpuLayout
impl Send for PerCpuLayout
impl StructuralPartialEq for PerCpuLayout
impl Sync for PerCpuLayout
Auto Trait Implementations§
impl Freeze for PerCpuLayout
impl RefUnwindSafe for PerCpuLayout
impl Unpin for PerCpuLayout
impl UnsafeUnpin for PerCpuLayout
impl UnwindSafe for PerCpuLayout
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