lib/application/sys_boot/boot.h¶
Boot / startup helpers and types for application bootstrap sequence. More...
Classes¶
| Name | |
|---|---|
| struct | CFBDBootTuple |
Detailed Description¶
Boot / startup helpers and types for application bootstrap sequence.
Author: Charliechen114514 (chengh1922@mails.jlu.edu.cn)
This header declares the lightweight types used by the application's bootstrap sequence. It provides a generic argument container type (CFBD_BootArgs), a function-pointer type for bootstrap entry points (CFBD_BootStrapFunc) and a small tuple type ([CFBDBootTuple](Classes/structCFBDBootTuple.md)) that associates an entry function with its arguments.
The design aims to be minimal and portable across platforms used in this repository. Implementations of bootstrap functions should adhere to the contract documented for CFBD_BootStrapFunc.
Source code¶
#pragma once
#include "cfbd_define.h"
typedef void* CFBD_BootArgs;
typedef CFBD_Bool (*CFBD_BootStrapFunc)(CFBD_BootArgs args);
typedef struct
{
CFBD_BootStrapFunc boot_func;
CFBD_BootArgs args;
} CFBDBootTuple;
Updated on 2026-02-03 at 13:21:55 +0000