pub struct CpuAreaPrefix { /* private fields */ }Expand description
Fixed three-cache-line prefix of every initialized runtime CPU area.
Implementations§
Source§impl CpuAreaPrefix
impl CpuAreaPrefix
Sourcepub fn initialize(
cpu_index: CpuIndex,
area_base: usize,
) -> Result<Self, CpuLocalError>
pub fn initialize( cpu_index: CpuIndex, area_base: usize, ) -> Result<Self, CpuLocalError>
Constructs the prefix value for one exclusively owned offline area.
§Errors
Returns an address error when area_base is null, misaligned, or its
fixed boot-context address overflows.
Sourcepub const fn header(&self) -> &CpuAreaHeader
pub const fn header(&self) -> &CpuAreaHeader
Returns immutable area identity.
Sourcepub const fn runtime_anchor(&self) -> &CpuRuntimeAnchor
pub const fn runtime_anchor(&self) -> &CpuRuntimeAnchor
Returns CPU runtime and trap state.
Sourcepub const fn boot_context(&self) -> &BootContextHeader
pub const fn boot_context(&self) -> &BootContextHeader
Returns the permanent boot execution-context header.
Auto Trait Implementations§
impl !Freeze for CpuAreaPrefix
impl RefUnwindSafe for CpuAreaPrefix
impl Send for CpuAreaPrefix
impl Sync for CpuAreaPrefix
impl Unpin for CpuAreaPrefix
impl UnsafeUnpin for CpuAreaPrefix
impl UnwindSafe for CpuAreaPrefix
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