← Projects

Features

Shared values across the kernel boundary

a9n-types defines capability descriptors, object kinds, rights, errors, fault reasons, and other shared values. It gives Rust components one set of definitions for data crossing the kernel boundary or exchanged throughout the A9N ecosystem.

It is a no_std library with no external crate dependencies. Calls and register operations belong to a9n_abi, while startup belongs to Nun. Components that need only the shared values therefore do not acquire those runtime responsibilities.

A common IPC message format

MessageInfo packs the blocking flag, message length, capability-transfer count, and normal/fault/notification source into one word. Constructors and accessors give senders and receivers a common interpretation of the bit layout.

IpcBuffer defines storage for message words beyond the register payload and fields identifying capability-transfer destinations. Sharing the header and buffer layouts avoids reproducing the ABI structure independently in each runtime.

Describing the initial environment

InitInfo groups the kernel version, architecture and platform names, core count, initial IPC buffer, and available Generic regions. GenericDescriptor records each region’s physical address, size, and device classification, giving the initial OS process an inventory of its resources.

InitInfo and GenericDescriptor use explicit C-compatible layouts, while ABI enums have explicit representations. Helpers also derive capability descriptors from the initial slot layout, keeping both the format and interpretation of startup information in one layer.

Technical details

Type
no_std Rust crate
Scope
Architecture-independent
Dependencies
No external crates
License
MIT
Source version
0.4.0
Source reference
main · 2054502 ↗

Related projects