Modules
The 168 modules that the tool builds, 150 of them in the boot image. A kernel runs in kernel mode; a module with an entry is one that the root service starts as a process; the others are modules that a process loads or calls. The source of each is in src/modules/, in the folder of its group: system, libraries, demonstrations or tests. The purpose of each is the first sentence of the comment before package in its source.
The module graph shows who imports whom: 53 imports between the 168 modules.
Kernel
| Module | Boot image | Exports | Imports | Purpose |
|---|---|---|---|---|
kernel | no | 1 | The kernel: the handle table, memory, the scheduler, the rings and the waits, the device grants and the interrupts | |
kernel_without_return_check | no | 1 | The kernel: the handle table, memory, the scheduler, the rings and the waits, the device grants and the interrupts | |
kernel_edge_counters | no | 1 | The kernel: the handle table, memory, the scheduler, the rings and the waits, the device grants and the interrupts |
Modules with an entry
| Module | Boot image | Exports | Imports | Purpose |
|---|---|---|---|---|
root | yes | 1 | Live delegated service tracking and restart supervision in the root core | |
input | yes | 1 | The input service: the device service of the PS/2 keyboard and mouse | |
compositor | yes | 26 | The assistive face of the compositor: the holders of the assistive role, their marks in the bar, and the magnification that a holder asks for | |
console | yes | 1 | Live console pre-call / wide-grant confirmation policy, CLDR en/fr localized prompt labels, and role contract listing integrated into console | |
monitor | yes | 6 | A system tool: the memory of the machine and the processes that run, as a picture that changes twice per second | |
plasma | yes | 1 | A demonstration: an animation that the processor computes for each frame | |
life | yes | 4 | A demonstration: Conway's Game of Life | |
paint | yes | 5 | A paint program: brushes, an eraser, a palette and a custom color, the tools line, rectangle, ellipse and fill, undo and redo, and pictures in the private store of the process | |
fault | yes | 1 | A process that writes to an address that it does not have | |
hall_of_fame | yes | 1 | The hall of fame: the people whose work inspired modus, each on a card | |
heron | yes | 4 | A demonstration, for fun: the heron of the mark plays its animations | |
node | yes | 1 | One node of the rings demonstration (package relay) | |
rings | yes | 1 | A demonstration of communication between processes: a ring is the one way that processes communicate, and a process reaches only the rings that it was given | |
threads | yes | 1 | A demonstration of threads | |
workers | yes | 1 | A demonstration of the lock and of the word wait | |
rights | yes | 1 | A demonstration of rights on handles: a process holds only the handles that it was given, and only with the rights that it was given | |
origin | yes | 1 | A demonstration of the origin of a handle and of Handle_Revoke: a process holds only the handles that it was given, and each grant can be revoked with all that came from it | |
limits | yes | 1 | A demonstration of the limits of a budget: processor time and log records | |
budget | yes | 1 | A demonstration of budgets: a process holds only what it was given, and each resource has a limit | |
flow | yes | 1 | A check and a measure of one ring: the ring is the base interface of the kernel and the one way that processes communicate | |
crowd | yes | 1 | A check and a measure of the shared queue and of the event | |
tally | yes | 6 | A count that its callers add to | |
manual | yes | 18 | The manual: it shows the documentation of each module of the boot image | |
clock | yes | 1 | The clock of the desktop: the local time, the date, a calendar of a month, a stopwatch with laps and a countdown timer | |
time_page | yes | 1 | A check and a measure of the time page | |
processor_frame | yes | 1 | The cost of a frame at 1920 x 1080 on the processor, with no GPU | |
randomness | yes | 1 | The random bytes of the system, where they come from, shown | |
extended_state | yes | 1 | The registers of the vector unit of each thread, which the kernel keeps apart | |
return_fault | yes | 1 | The return of the kernel to a process, against threads that try to break it | |
fault_ring | yes | 1 | The faults of a process as records of a ring, case by case | |
debugged | yes | 1 | The debugger of a process, as the kernel gives it | |
debugger | yes | 31 | The debugger service: the commands of a debugger, as exports | |
debug_target | yes | 1 | The process that the test of the debugger debugs | |
replay_probe | yes | 1 | The record and the replay of a process with a shared writer | |
kernel_events | yes | 1 | The events that the kernel sends to a process, case by case | |
guest_demo | yes | 1 | The first guest: a process that runs a few instructions of another system on the processor, in a guest, and receives what the guest does as records | |
counters | yes | 1 | The counters of a thread: a process counts the events of the processor for its own code | |
terminal | yes | 1 | The terminal: it shows the text that a process gives as records, and it gives the keys that the input types to that process (src/library/modus/terminal) | |
serial_terminal | yes | 1 | Serial ANSI 24-bit TrueColor terminal renderer for modus:terminal | |
grid_terminal | yes | 1 | Full-screen direct framebuffer monospace grid terminal for modus:terminal | |
dom_terminal | yes | 1 | The terminal of the console for a page that draws it with the document of a browser | |
flood | yes | 1 | A process that writes lines to its terminal as fast as it can | |
hostile_terminal | yes | 1 | A test module that writes to its terminal three records whose kind names no record, then one line, and stops | |
arena | yes | 1 | The test of an arena paid by the budget | |
output_wiring | yes | 1 | The asker of the machine test of the record outputs | |
output_writer | yes | 1 | The writer of the machine test of the record outputs | |
log_flood | yes | 1 | The writer of the machine test of the record output log | |
generic_wiring | yes | 1 | The asker of the machine test of the generic record inputs, merge and filter | |
generic_source | yes | 1 | The writer of the machine test of the generic record inputs | |
audit_asker | no | 1 | The asker of the machine test of the audit of the collector | |
plan_applier | no | 1 | The applier of the machine test of the plan of principal 0 across a restart | |
settings_stand_in | no | 5 | A holder of the role Settings that is not the module of the boot image | |
log_follower | yes | 1 | The follower of the machine test of log.follow | |
notify_border_of_the_compositor | yes | 1 | The test of the border of compositor.notify for a caller that does not act for the principal | |
output_reader | yes | 1 | The reader of the machine test of the record outputs | |
output_side | yes | 1 | A side of a wiring that writes its own words in its wiring ring, past the library | |
output_counter | yes | 1 | A writer of one record output for the streams of the console | |
output_count_reader | yes | 1 | A reader of the record output of output_counter, for the wiring list that the console gives a start | |
output_liar | yes | 1 | A writer that lies about the condition of its wiring | |
requests_pace | yes | 1 | The asker of the test of fan-out and the pace | |
requests_reader | yes | 1 | The slow reader of the test of fan-out and the pace | |
output_measure | yes | 1 | The asker of the measures 1, 2, 4 and 9 of the record outputs | |
output_measure_writer | yes | 1 | The writer of the measures 1, 2 and 4 of the record outputs | |
output_measure_reader | yes | 1 | A reader of the measure 2 of the record outputs | |
processors | yes | 1 | A demonstration of several processors | |
boot | yes | 1 | A system tool: how the machine started, at any time | |
pages | yes | 1 | A system tool: what the page tables give, as the kernel reads it from the tables themselves | |
frames | yes | 1 | A demonstration of paging as a tool of the system (paging, second part) | |
twin | yes | 1 | A module that the process frames starts several times, to show the shared code of a module and a page that two processes share (package modus:twins) | |
locks | yes | 1 | The checks and the measures of the locks of the kernel | |
shortage | no | 1 | The real shortage of page frames: the frame caches of the processors drained so that a take that cannot fail succeeds | |
stops_refused | no | 1 | A row of the test of the restarts of a start policy | |
stops_failed | no | 1 | A row of the test of the restarts of a start policy | |
scheduler | yes | 4 | The scheduling strategies of the kernel, side by side | |
address_space | yes | 1 | A process drives its own virtual memory | |
locker | yes | 1 | A module that the process locks starts several times, to load the kernel from several processes at one time (package modus:lockers) | |
log | yes | 6 | A system tool: the log of the machine, as records | |
log_reader | yes | 1 | A test of the log scope: a process that reads its own log records back through the log service, with a connection that does not act for the principal, and the records of the two children that it starts | |
block | yes | 1 | The block service: the device service of one virtio block device (virtio 1.x over PCI, the "modern" interface) | |
frame | yes | 1 | The frame service: the device service of one virtio network device (virtio 1.x over PCI, the "modern" interface) | |
iommu_device | yes | 1 | The test device service of the IOMMU: a device service of the virtio block device of the disk of the measures that gives its device an address that it did not declare | |
tpm | yes | 1 | The TPM service: the device service of the TPM of the machine | |
wiring | yes | 1 | The delegated wiring service: creates and manages record-stream wirings between processes without holding root authority | |
entropy | yes | 1 | The entropy service: the device service of the entropy device of the machine (virtio-rng, virtio 1.x over PCI) | |
sound | yes | 1 | The sound service: the device service of the sound device of the machine (virtio-snd, virtio 1.x over PCI) | |
tone | yes | 1 | A tone of 440 Hz through the sound service, at a time that the process names | |
iommu | yes | 1 | The client of the test of the IOMMU | |
network | yes | 1 | Per-endpoint isolated receive queue helpers for network_service (contract-level helpers wired with owner-bound register/dequeue/unregister) | |
net | yes | 1 | The first layer of the network, shown case by case: the link and the address, an ARP answer of the gateway, an echo of the gateway, a UDP datagram to an echo server and its answer, the refusals of the grant, the frames from the wire that the network service refused, and the measures | |
server | yes | 5 | A simple web server: TCP in the process, one thread, one table of connections, and records of fixed size for all its state | |
fetch | yes | 1 | A web client of this system: TCP in the process, over a segment endpoint with a client grant (src/library/modus/tcp) | |
module_files | yes | 3 | The module file service: it stores a module file that a web server gives in the store module_files of its principal, and lists the files of that store with the hash of their bytes | |
inspect | yes | 4 | A developer tool: the memory and the execution of one process, live | |
debugger_window | yes | 1 | The window of the debugger: the threads, the stack, the variables, the source lines and the memory of a process, with no line to type in the console | |
disk | yes | 1 | A check and a measure of the block service, on a disk of its own that holds no data of a process | |
storage | yes | 29 | The border of a typed object and its derived migrations, bound into the storage service as internal helpers | |
notes | yes | 1 | The notes of the principal: a list of notes, the text of one note, and the versions of that note, in a window that the principal resizes | |
assistant | yes | 9 | The assistant: a window where the principal asks an agent for help, and reads the conversation: the replies of the agent, each act that it proposes, and the result of each act | |
persistence_check | yes | 1 | A test process that keeps its state when it stops and when the machine stops: a note and a count, in its private store | |
browser | yes | 1 | A light web browser in one window: an address field, a history, and a page of HTML and CSS | |
edit | yes | 1 | The editor of a text: a text object of its private store, or of any granted store opened with edit(store, name), in a window, with the keys that most principals know from other systems and no modes | |
hierarchy | yes | 1 | A test of the trees of a store: many entries in trees inside trees, a listing in pages, a rename, the removal of a tree, and a handle on a part of the store that reaches nothing outside it | |
ranges | yes | 1 | A test of the large objects of a store: an object of 8 GiB made by three range writes holds a few blocks; 1000 small writes at scrambled offsets and one commit hash and write what they touched, not the whole object; a version keeps its bytes; a cut and an extension; the refusals; the same object of 1 MiB under two names takes the blocks of one | |
host | yes | 1 | The call host: a process that loads one module and executes the isolated calls of its exports (package isolated): the arguments travel as records, not as text | |
cryptography_vectors | yes | 1 | The module cryptography as it ships, at work on known vectors | |
quic_echo | yes | 1 | A QUIC echo server: QUIC in the process, over a datagram endpoint with a listen grant of UDP | |
remote | yes | 1 | The remote service: the calls of the host | |
remote_display | yes | 1 | The remote display: the screen of the machine for a viewer on another machine, and the keys and the pointer of that viewer ( | |
unlock | yes | 1 | The unlock of a named principal: the process that keeps the record of a named principal in its private store, and asks for its passphrase in its window | |
imports | yes | 1 | A demonstration of the loader: a module with imports, and the replacement of an import | |
errors | yes | 1 | A process that shows the errors of the system: one case for each kind of error | |
interface_elements | yes | 1 | The elements of the windows of the system, live: buttons, fields, lists, tables | |
tables | yes | 1 | Tables and bytes as parameters: one description, three ways to call | |
interface_through_module | yes | 1 | The interface package as a module, for one process: one frame built in two ways, compared | |
merge | yes | 1 | merge joins several streams of one record into one | |
filter | yes | 1 | filter keeps the records of one stream that pass one condition | |
wired_reader | yes | 1 | The reader of a pair of modules that the start list wires together | |
wired_writer | yes | 1 | The writer of a pair of modules that the start list wires together | |
vector_glyphs | yes | 1 | The choice of the vector font: the same lines of the system in each candidate font and in Spleen 8x16, one word of each enlarged, and the measures of the text path | |
interface_font | yes | 1 | The interface font, B612 Regular and Bold, as the windows draw it | |
pointers | yes | 1 | The pointer themes of the boot image, as a table that a reader reads: each pointer shape of a theme at each of its sizes, in each of its forms (the light form on a light track), its hot spot marked, its frames, and the theme with its license and its attribution | |
settings | yes | 14 | The settings of the system: the font of the system, the order of the color stripes of the screen, the pointer theme, the grid fit of the vector font, the layout of the keyboard, the appearance of the desktop, the time zone and the languages that the principal reads | |
date | yes | 2 | The date of the machine: this service reads the real-time clock of the machine (the CMOS clock, ports 0x70 and 0x71) at its start and each 10 seconds, and writes in the date page the date of the time 0 of the system | |
start_policy | yes | 1 | The default start policy, and the rescue start policy with the rescue list | |
operation_sequence_runner | no | 1 | The runner of one operation sequence | |
operation_fuzzing | no | 1 | The process that runs operation sequences | |
visitor | no | 1 | A module that is not in the boot image: the test of a disk process | |
store_importer | no | 1 | A disk process that imports a library module of the store module_files: the test of the import scan | |
disk_start_policy | no | 1 | A start policy that is not in the boot image: the test of a start policy from the disk | |
powerbox | yes | 3 | Delegated powerbox service implementing Role.Powerbox | |
plans | yes | 12 | The exports of the plans service that act for the principal of the caller | |
recipes | yes | 10 | The exports of the recipes service | |
projects | yes | 8 | The exports of the projects service that act for the principal of the caller | |
collector | yes | 14 | Delegated collector and wide-grant audit service | |
linux | yes | 1 | The process linux: a shell of Linux in a terminal window | |
gpu_device | yes | 1 | The GPU device service: the device service of one VirtIO-GPU 1.2 PCI device (vendor 0x1AF4, device 0x1050) | |
disk_processes | yes | 2 | The delegated service disk_processes: the holder of the role Disk_Processes | |
devices | yes | 2 | Delegated devices service implementing Role.Devices | |
principals | yes | 2 | Delegated principals service implementing Role.Principals |
Modules with no entry
| Module | Boot image | Exports | Imports | Purpose |
|---|---|---|---|---|
test_callee | no | 1 | A test module with one export | |
test_caller | no | 1 | A test module that imports test_callee and has the entry | |
drawing | yes | 3 | The drawing module: the damage of a frame and the draw of its records, for each process that imports it | |
assemble | yes | 2 | The assembler as a module: the first program of modus that writes a program | |
c_compiler | yes | 2 | The C compiler as a module: chibicc, ported | |
declaration_eval | yes | 1 | Sandboxed .lex declaration evaluator module | |
probe | yes | 8 | A module of commands that tests the sandbox of an isolated call | |
math | yes | 8 | A module of commands: each command is a function with typed parameters, not a module that parses text | |
cryptography | yes | 15 | The cryptography of the system as one module of code: each export is a primitive of Odin's core:crypto that the system took (src/library/modus/cryptography), in the forms of the system | |
tls_tcp | yes | 8 | TLS 1.3 over TCP and the wire borders of QUIC as a library module of the system | |
ssh_client | yes | 3 | Thin library module exposing SSH-2 client framing and validation exports so processes share one verified SSH-2 client implementation | |
ghostty_vt | yes | 2 | Freestanding library module exposing the fixed-arena libghostty-vt C-ABI bridge and ANSI/VT100/xterm terminal grid exports | |
web_engine | yes | 3 | Freestanding shared library module combining HTTP/1.1 framing, WHATWG-subset HTML/CSS layout, and PNG/JPEG image probing so per-origin browser processes share one verified read-only engine module | |
sample | yes | 15 | A module of commands that take a record, a handle or a table, never text that the module must parse | |
hostile_exports | yes | 7 | Exports that are wrong on purpose, for the tests of the callers | |
calendar | yes | 1 | The days of the months of the Gregorian calendar | |
calendar_fixed | yes | 1 | The days of the months of the Gregorian calendar, with the correction of the module calendar | |
calendar_changed | yes | 1 | The days of the months of a calendar that a parameter chooses | |
agenda | yes | 4 | A module of commands that imports the module calendar | |
lonely | yes | 1 | A module of commands whose import is not in the boot image | |
interface_module | yes | 6 | The interface package as a module (the test of the claim "the functions are written so the package can become a module later with the same calls") | |
text_rendering | yes | 3 | The text rendering as a module: each export calls one function of src/library/modus/text_rendering over the bytes and the tables of the caller | |
store_library | no | 1 | A library module that no boot image holds: the test of an import of a disk process from the store module_files | |
display_conformance | no | 1 | Display role conformance suite | |
work_accounting_probe | yes | 2 | Work accounting probe: per-connection work threads strictly funded by each client's offered child budget | |
guest_builder | yes | 3 | Sandboxed freestanding guest builder module |
Read from module_builds in tools/modustool/foundation/module_table.odin and from the source folder of each module.
