Notes index: The kernel
Threads, capabilities, IPC, and how authority ends.
Part of the notes index, which says how to add a line.
- Userspace: the three hardware walls that make userspace.
- The console driver leaves the kernel: the console as a userspace process reached by IPC.
- The native ABI: the system call convention, object surface and entry contract.
- The system call boundary: the five calls, where each method's code sits for the footprint gate, the rights each asks for, and how a run is mapped.
- Threads, the context switch, and preemption: threads, the fifteen-instruction switch, and preemption.
- The scheduler: placement, stealing, wakes: per-core run queues, placement, stealing and wakes.
- The scheduler's diagnostic instruments: the per-core event rings and the corruption canary, what each costs and why the canary is kept unarmed. Name provisional.
- Bringing up the other cores: the core roster seated by hardware id, secondary start and stacks, and how the SMP tests wait.
- The thread control block: the Thread Control Block, and where it lives.
- Generational names (
nifeos/nife:notes/generational-names.md): thread ids that fail safely after slot reuse. - generational_table and the existing crates (
nifeos/nife:notes/generational-table-and-existing-crates.md): whetherslotmapand its relatives already cover the fixed-capacity table, and the release question. Name provisional. - Intrusive queues: run queues whose link lives inside the thread.
- The per-CPU block: each core's private state, and what holds its size and alignment. Name provisional.
- Locking: spinlocks with interrupts, and the orderings that avoid deadlock.
- Deadlock: the four Coffman conditions and how to break one.
- Memory ordering, and the fences with no partner: every fence and ordered atomic, adjudicated.
- The IPC_TABLES lock inventory: what the one remaining IPC lock protects, by heat.
- Capabilities, and why the kernel has no
open()(nifeos/nife:notes/capabilities.md): capabilities, the confused deputy, first system calls and IPC. - What a capability can name: each kernel object a capability names and why it is there, the table's size and peak, and the rights checks.
- Who does IPC name? (
nifeos/nife:notes/ipc-naming.md): IPC names a rendezvous, never the peer. - Processes: what threads share, and how they end together: the process object,
BIND, and a process ending as one. Name provisional. - Address wait and wake: parking a thread on a word of its own space, and why the check and the park are one step. Name provisional.
- The thread pointer, and the one asymmetry below its ABI: each thread's own
TPIDR_EL0,tporFSbase, set by the kernel. - The IPC decision core (
nifeos/nife:notes/inter-process-communication.md): the rendezvous, notification, timer and address wait state machines the kernel wraps, and how their proofs are shaped. Name provisional. - Notification objects: a doorbell bound to a thread, and why the receive tag lives in
w4. - How authority moves, narrows, and ends: how capabilities are copied, narrowed and revoked.
- Delegating a capability: passing a narrowed capability between processes over IPC.
- The progenitor's capability-table peak, slot by slot: which capabilities hold the 31 of 32, and what each option to lower it saves. Name provisional.
- The mapping log: how revocation finds every mapping: the per-space record of every mapping and the capability it was made under, and the sweeps that read it.
- Object revocation: tearing a process back down: reclaiming the kernel objects a process built.
- Ending a permanently blocked thread: research and proposals for ending a blocked thread.
- Suspending and resuming a thread: how
SUSPENDandRESUMEstop and continue a thread, case by case. - Supervision: a thread's death becomes a message: the fault endpoint, and reaping without building.
- Per-process resource quotas: a live-children cap on spawners, kept but unused.
- What a timed wait costs: pricing a deadline on a blocked thread.
- The timer: the object that ends a wait at a deadline.
- Can a userspace process hold a timer?.
- Trusted init: measuring the boot program, and then everything the progenitor loads.
- The progenitor, and loading a program from userspace.
- Two seams only the test kernel has: holding a delegation open for a revocation sweep, and failing a thread's Nth retype.
- Booting the progenitor: the boot capability set, slot by slot, and the devices the kernel starts itself.
- The system initializer: what the progenitor builds, how it measures what it loads, and the spawn service.
- Auditing the hand-written arch assembly: a by-hand audit of the least-verified TCB code.
- The L4 lessons, audited against this kernel: the kernel checked against L4's twenty-year retrospective.
- HongMeng, and what its numbers say about strict isolation: Huawei's production microkernel compared with nife, with its measured cost of isolation.
- How the log service drains the kernel's ring: milestone 342 (the kernel and the
consoleserver drive one UART)'s proposal, a read-only frame plus a notification against a read method on a new object, with the seven questions answered.