modus
Menu
On this page

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

ModuleBoot imageExportsImportsPurpose
kernelno1The kernel: the handle table, memory, the scheduler, the rings and the waits, the device grants and the interrupts
kernel_without_return_checkno1The kernel: the handle table, memory, the scheduler, the rings and the waits, the device grants and the interrupts
kernel_edge_countersno1The kernel: the handle table, memory, the scheduler, the rings and the waits, the device grants and the interrupts

Modules with an entry

ModuleBoot imageExportsImportsPurpose
rootyes1Live delegated service tracking and restart supervision in the root core
inputyes1The input service: the device service of the PS/2 keyboard and mouse
compositoryes26The assistive face of the compositor: the holders of the assistive role, their marks in the bar, and the magnification that a holder asks for
consoleyes1Live console pre-call / wide-grant confirmation policy, CLDR en/fr localized prompt labels, and role contract listing integrated into console
monitoryes6A system tool: the memory of the machine and the processes that run, as a picture that changes twice per second
plasmayes1A demonstration: an animation that the processor computes for each frame
lifeyes4A demonstration: Conway's Game of Life
paintyes5A 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
faultyes1A process that writes to an address that it does not have
hall_of_fameyes1The hall of fame: the people whose work inspired modus, each on a card
heronyes4A demonstration, for fun: the heron of the mark plays its animations
nodeyes1One node of the rings demonstration (package relay)
ringsyes1A 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
threadsyes1A demonstration of threads
workersyes1A demonstration of the lock and of the word wait
rightsyes1A demonstration of rights on handles: a process holds only the handles that it was given, and only with the rights that it was given
originyes1A 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
limitsyes1A demonstration of the limits of a budget: processor time and log records
budgetyes1A demonstration of budgets: a process holds only what it was given, and each resource has a limit
flowyes1A check and a measure of one ring: the ring is the base interface of the kernel and the one way that processes communicate
crowdyes1A check and a measure of the shared queue and of the event
tallyyes6A count that its callers add to
manualyes18The manual: it shows the documentation of each module of the boot image
clockyes1The clock of the desktop: the local time, the date, a calendar of a month, a stopwatch with laps and a countdown timer
time_pageyes1A check and a measure of the time page
processor_frameyes1The cost of a frame at 1920 x 1080 on the processor, with no GPU
randomnessyes1The random bytes of the system, where they come from, shown
extended_stateyes1The registers of the vector unit of each thread, which the kernel keeps apart
return_faultyes1The return of the kernel to a process, against threads that try to break it
fault_ringyes1The faults of a process as records of a ring, case by case
debuggedyes1The debugger of a process, as the kernel gives it
debuggeryes31The debugger service: the commands of a debugger, as exports
debug_targetyes1The process that the test of the debugger debugs
replay_probeyes1The record and the replay of a process with a shared writer
kernel_eventsyes1The events that the kernel sends to a process, case by case
guest_demoyes1The 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
countersyes1The counters of a thread: a process counts the events of the processor for its own code
terminalyes1The 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_terminalyes1Serial ANSI 24-bit TrueColor terminal renderer for modus:terminal
grid_terminalyes1Full-screen direct framebuffer monospace grid terminal for modus:terminal
dom_terminalyes1The terminal of the console for a page that draws it with the document of a browser
floodyes1A process that writes lines to its terminal as fast as it can
hostile_terminalyes1A test module that writes to its terminal three records whose kind names no record, then one line, and stops
arenayes1The test of an arena paid by the budget
output_wiringyes1The asker of the machine test of the record outputs
output_writeryes1The writer of the machine test of the record outputs
log_floodyes1The writer of the machine test of the record output log
generic_wiringyes1The asker of the machine test of the generic record inputs, merge and filter
generic_sourceyes1The writer of the machine test of the generic record inputs
audit_askerno1The asker of the machine test of the audit of the collector
plan_applierno1The applier of the machine test of the plan of principal 0 across a restart
settings_stand_inno5A holder of the role Settings that is not the module of the boot image
log_followeryes1The follower of the machine test of log.follow
notify_border_of_the_compositoryes1The test of the border of compositor.notify for a caller that does not act for the principal
output_readeryes1The reader of the machine test of the record outputs
output_sideyes1A side of a wiring that writes its own words in its wiring ring, past the library
output_counteryes1A writer of one record output for the streams of the console
output_count_readeryes1A reader of the record output of output_counter, for the wiring list that the console gives a start
output_liaryes1A writer that lies about the condition of its wiring
requests_paceyes1The asker of the test of fan-out and the pace
requests_readeryes1The slow reader of the test of fan-out and the pace
output_measureyes1The asker of the measures 1, 2, 4 and 9 of the record outputs
output_measure_writeryes1The writer of the measures 1, 2 and 4 of the record outputs
output_measure_readeryes1A reader of the measure 2 of the record outputs
processorsyes1A demonstration of several processors
bootyes1A system tool: how the machine started, at any time
pagesyes1A system tool: what the page tables give, as the kernel reads it from the tables themselves
framesyes1A demonstration of paging as a tool of the system (paging, second part)
twinyes1A 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)
locksyes1The checks and the measures of the locks of the kernel
shortageno1The real shortage of page frames: the frame caches of the processors drained so that a take that cannot fail succeeds
stops_refusedno1A row of the test of the restarts of a start policy
stops_failedno1A row of the test of the restarts of a start policy
scheduleryes4The scheduling strategies of the kernel, side by side
address_spaceyes1A process drives its own virtual memory
lockeryes1A module that the process locks starts several times, to load the kernel from several processes at one time (package modus:lockers)
logyes6A system tool: the log of the machine, as records
log_readeryes1A 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
blockyes1The block service: the device service of one virtio block device (virtio 1.x over PCI, the "modern" interface)
frameyes1The frame service: the device service of one virtio network device (virtio 1.x over PCI, the "modern" interface)
iommu_deviceyes1The 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
tpmyes1The TPM service: the device service of the TPM of the machine
wiringyes1The delegated wiring service: creates and manages record-stream wirings between processes without holding root authority
entropyyes1The entropy service: the device service of the entropy device of the machine (virtio-rng, virtio 1.x over PCI)
soundyes1The sound service: the device service of the sound device of the machine (virtio-snd, virtio 1.x over PCI)
toneyes1A tone of 440 Hz through the sound service, at a time that the process names
iommuyes1The client of the test of the IOMMU
networkyes1Per-endpoint isolated receive queue helpers for network_service (contract-level helpers wired with owner-bound register/dequeue/unregister)
netyes1The 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
serveryes5A simple web server: TCP in the process, one thread, one table of connections, and records of fixed size for all its state
fetchyes1A web client of this system: TCP in the process, over a segment endpoint with a client grant (src/library/modus/tcp)
module_filesyes3The 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
inspectyes4A developer tool: the memory and the execution of one process, live
debugger_windowyes1The 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
diskyes1A check and a measure of the block service, on a disk of its own that holds no data of a process
storageyes29The border of a typed object and its derived migrations, bound into the storage service as internal helpers
notesyes1The 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
assistantyes9The 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_checkyes1A test process that keeps its state when it stops and when the machine stops: a note and a count, in its private store
browseryes1A light web browser in one window: an address field, a history, and a page of HTML and CSS
edityes1The 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
hierarchyyes1A 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
rangesyes1A 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
hostyes1The 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_vectorsyes1The module cryptography as it ships, at work on known vectors
quic_echoyes1A QUIC echo server: QUIC in the process, over a datagram endpoint with a listen grant of UDP
remoteyes1The remote service: the calls of the host
remote_displayyes1The remote display: the screen of the machine for a viewer on another machine, and the keys and the pointer of that viewer (
unlockyes1The 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
importsyes1A demonstration of the loader: a module with imports, and the replacement of an import
errorsyes1A process that shows the errors of the system: one case for each kind of error
interface_elementsyes1The elements of the windows of the system, live: buttons, fields, lists, tables
tablesyes1Tables and bytes as parameters: one description, three ways to call
interface_through_moduleyes1The interface package as a module, for one process: one frame built in two ways, compared
mergeyes1merge joins several streams of one record into one
filteryes1filter keeps the records of one stream that pass one condition
wired_readeryes1The reader of a pair of modules that the start list wires together
wired_writeryes1The writer of a pair of modules that the start list wires together
vector_glyphsyes1The 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_fontyes1The interface font, B612 Regular and Bold, as the windows draw it
pointersyes1The 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
settingsyes14The 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
dateyes2The 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_policyyes1The default start policy, and the rescue start policy with the rescue list
operation_sequence_runnerno1The runner of one operation sequence
operation_fuzzingno1The process that runs operation sequences
visitorno1A module that is not in the boot image: the test of a disk process
store_importerno1A disk process that imports a library module of the store module_files: the test of the import scan
disk_start_policyno1A start policy that is not in the boot image: the test of a start policy from the disk
powerboxyes3Delegated powerbox service implementing Role.Powerbox
plansyes12The exports of the plans service that act for the principal of the caller
recipesyes10The exports of the recipes service
projectsyes8The exports of the projects service that act for the principal of the caller
collectoryes14Delegated collector and wide-grant audit service
linuxyes1The process linux: a shell of Linux in a terminal window
gpu_deviceyes1The GPU device service: the device service of one VirtIO-GPU 1.2 PCI device (vendor 0x1AF4, device 0x1050)
disk_processesyes2The delegated service disk_processes: the holder of the role Disk_Processes
devicesyes2Delegated devices service implementing Role.Devices
principalsyes2Delegated principals service implementing Role.Principals

Modules with no entry

ModuleBoot imageExportsImportsPurpose
test_calleeno1A test module with one export
test_callerno1A test module that imports test_callee and has the entry
drawingyes3The drawing module: the damage of a frame and the draw of its records, for each process that imports it
assembleyes2The assembler as a module: the first program of modus that writes a program
c_compileryes2The C compiler as a module: chibicc, ported
declaration_evalyes1Sandboxed .lex declaration evaluator module
probeyes8A module of commands that tests the sandbox of an isolated call
mathyes8A module of commands: each command is a function with typed parameters, not a module that parses text
cryptographyyes15The 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_tcpyes8TLS 1.3 over TCP and the wire borders of QUIC as a library module of the system
ssh_clientyes3Thin library module exposing SSH-2 client framing and validation exports so processes share one verified SSH-2 client implementation
ghostty_vtyes2Freestanding library module exposing the fixed-arena libghostty-vt C-ABI bridge and ANSI/VT100/xterm terminal grid exports
web_engineyes3Freestanding 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
sampleyes15A module of commands that take a record, a handle or a table, never text that the module must parse
hostile_exportsyes7Exports that are wrong on purpose, for the tests of the callers
calendaryes1The days of the months of the Gregorian calendar
calendar_fixedyes1The days of the months of the Gregorian calendar, with the correction of the module calendar
calendar_changedyes1The days of the months of a calendar that a parameter chooses
agendayes4A module of commands that imports the module calendar
lonelyyes1A module of commands whose import is not in the boot image
interface_moduleyes6The 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_renderingyes3The 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_libraryno1A library module that no boot image holds: the test of an import of a disk process from the store module_files
display_conformanceno1Display role conformance suite
work_accounting_probeyes2Work accounting probe: per-connection work threads strictly funded by each client's offered child budget
guest_builderyes3Sandboxed freestanding guest builder module

Read from module_builds in tools/modustool/foundation/module_table.odin and from the source folder of each module.