Open and answer this issue on GitHub.
targets, decision, future · opened 2026-11-09 · updated 2026-11-09 · 0 comments
The owner asked (2026-11-09) about kernel developers who must control how memory is managed. The bare-metal target (ADR-119) is the nearest thing specified, and it does not cover a kernel. This blocks nothing today (future).
ADR-119 (accepted, not built) gives a target without an operating system: emitted Rust is no_std with core and alloc, a failure aborts without unwinding, interrupts are wakers to the target’s executor, user_parallelism is no, runtime settings are baked in at build. Nothing is said about a kernel.
GFP_ATOMIC against GFP_KERNEL); the checker would have to know which context a function runs in, as the ledger’s touches and ADR-119 D3’s interrupt checks already track columns.user_parallelism = no does not fit, and ADR-119 D5’s “a lock is a critical section” is wrong there.-ENOMEM, -EINVAL), as ADR-284’s entry points answer with a status.kernel crate and its bindings, not cargo with alloc.kernel crate instead of std/alloc’s infallible API; KBox, KVec with flags; pinned initialisation for self-referential kernel structures; built by Kbuild.kernel crate, allocations are fallible (the setting of #1493), locks map to the kernel’s, failures become error codes at the module’s entry points.Option 1 for now and option 2 as the goal, decided after #1493 and after ADR-119 is built, because a kernel target reuses both. Option 3 gives up what Nikaia is for: the kernel’s rules (context, locks) would go unchecked.
Related: ADR-119, ADR-284, #1493, #490.