modus
Menu
On this page

The entry output_writer

The writer of the machine test of the record outputs . The test module output_wiring starts it, with a wiring list or with none, and the record output that the list wires at its start chooses what it does: the ends of a wiring list are in its wiring ring before its first instruction.

  • probes wired at the start: it writes the probes 0 to 4, waits for a second reader, which a Wire adds, writes the probes 5 to 7, ends the record output, and stops.
  • unended wired: it writes one probe, and stops with no end record: its reader reads the end word Writer_Stopped.
  • watched wired: it writes one probe, and waits until its reader stops: the end word is Reader_Stopped.
  • asked wired: it writes one probe, and waits until its asker stops: the end word is Asker_Stopped.
  • nothing wired: its asker wires large to itself, as many times as the limit of an asker allows, then revokes its wirings: it waits until each ring ended, and each end word is Revoked.

Start: by output_wiring only. What a reader sees: no window; one line "output_writer: ...: as it must" for each case, or a line "output_writer: WRONG: ...". It stops itself with the outcome Done, or Failed after a WRONG line.

See: Record outputs and record inputs of a module: typed streams of records between processes: How a test waits on a record output in the repository

output_writer module with an entry

Hash
9873b046a07dd8ba161b948374ccad2080d586f0a99bb4b7839df5fffa9a7b6c
Size
61440 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The writer of the machine test of the record outputs

FactValue
KindModules with an entry
Sourcesrc/modules/tests/output_writer
Boot imageyes: in the boot image, 61440 bytes in this build
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
entry()chooses its case by the record output that its start wired

entry

entry()

entry chooses its case by the record output that its start wired.

Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/tests/output_writer/main.odin:93

Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).

What the root service gives it

WhatValueAs the root service says
GrantsnoneThe writer and the reader of that test: their ends come from the root service in their wiring rings, and they need no grant.
Other terms of its start grant setnone
Budget that it asks for
  • the least budget
No MODULE_BUDGET in its source: it asks for the least budget.

The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module; the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).