pub struct Stage2Create {
pub root_task: Option<TaskHandle>,
pub regions: [Option<RegionHandle>; 256],
pub region_count: usize,
pub witness_log: Option<WitnessLog>,
pub boot_capabilities: Option<BootCapabilitySet>,
}Expand description
Stage 2: Kernel object creation.
Creates:
- Root task
- Memory regions per manifest schema
- Queues per manifest wiring
- Witness log region
Fields§
§root_task: Option<TaskHandle>Root task handle.
regions: [Option<RegionHandle>; 256]Created region handles.
region_count: usizeNumber of active regions in the array.
witness_log: Option<WitnessLog>Witness log handle.
boot_capabilities: Option<BootCapabilitySet>Initial capability set for root task.
Implementations§
Source§impl Stage2Create
impl Stage2Create
Sourcepub fn execute(
&mut self,
manifest: &RvfManifest,
_physical_memory_bytes: u64,
) -> Result<(), KernelError>
pub fn execute( &mut self, manifest: &RvfManifest, _physical_memory_bytes: u64, ) -> Result<(), KernelError>
Executes Stage 2 kernel object creation.
§Errors
Returns an error if object creation fails (e.g., out of memory).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stage2Create
impl RefUnwindSafe for Stage2Create
impl Send for Stage2Create
impl Sync for Stage2Create
impl Unpin for Stage2Create
impl UnsafeUnpin for Stage2Create
impl UnwindSafe for Stage2Create
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