Struct r3_core::kernel::hook::StartupHook
source · pub struct StartupHook<System: KernelBase>(_);
Expand description
Represents a registered startup hook in a system.
There are no operations defined for startup hooks, so this type is only used for static configuration.
Startup hooks execute during the boot phase with CPU Lock active, after initializing kernel structures and before scheduling the first task.
Relation to Other Specifications:
StartupHook
(AUTOSAR OS, OSEK/VDX), last function (TI-RTOS), initialization routine (μITRON4.0).
Implementations§
source§impl<System: KernelBase> StartupHook<System>
impl<System: KernelBase> StartupHook<System>
sourcepub const fn define() -> StartupHookDefiner<System>
pub const fn define() -> StartupHookDefiner<System>
Construct a StartupHookDefiner
to register a startup hook in
a configuration function.