ArceOS 架构

Component-based Unikernel OS

可选模块 (按 feature 启用) 核心模块 (必需) C 应用 POSIX 兼容 Rust 应用 自定义 Web 应用 HTTP Server axlibc C 标准库 axstd Rust std-like POSIX API arceos_posix_api ArceOS API arceos_api axfeat Feature 控制 axtask 任务管理 multitask axsync 同步原语 multitask axnet 网络栈 net axfs 文件系统 fs axdisplay 图形显示 display axalloc 内存分配器 alloc axmm 内存管理 mm axdriver 设备驱动 driver-* axdma DMA 管理 dma axipi 处理器间通信 ipi axns 命名空间 namespace axruntime 引导 & 初始化 必需 axhal 硬件抽象层 必需 axconfig 平台配置 必需 axlog 日志系统 必需 bitmap-allocator slab-allocator lwip-rs 网络协议 vfs 虚拟文件系统 fdt 设备树解析 更多 crates ... OS-agnostic x86_64 QEMU / PC AArch64 QEMU / 树莓派 RISC-V QEMU / 开发板 LoongArch QEMU / 龙芯 适配层 Legend Frontend Backend Cloud Security Database External

分层设计

  • • 应用 → 用户库 → API → 模块 → Crates → 硬件
  • • 每层通过 Cargo feature 按需组合

模块化内核

  • • 必需模块: runtime / hal / config / log
  • • 可选模块: task / net / fs / display / alloc 等

跨平台

  • • x86_64 / AArch64 / RISC-V / LoongArch
  • • axhal 屏蔽硬件差异,统一 API