modus
Menu
On this page

The entry output_reader

The reader of the machine test of the record outputs . The test module output_wiring starts it, then wires one of its record inputs, and the first record input that has a writer chooses what it reads:

  • probes: the joined record, the probes from the serial that it names to the last one in order, and a clean end record. The reader of the start of the writer joins at 0; the reader that a Wire adds after five probes joins at 5.
  • unended: the joined record of 0, one probe, then the end word Writer_Stopped of a writer that stopped with no end record.
  • watched: the joined record and one probe, then the stop of this process: the writer reads the end word Reader_Stopped.

It declares one record output, echo, which no row wires: the test of a wiring of one process to itself names it.

Start: by output_wiring only. What a reader sees: no window; one line "output_reader: ...: as it must", or a line "output_reader: 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_reader module with an entry

Hash
ea24348dd00efe19af87b42ec1eae2cc350f7e0f5a78024265420988ee5df7d4
Size
61440 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The reader of the machine test of the record outputs

FactValue
KindModules with an entry
Sourcesrc/modules/tests/output_reader
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()waits for the first record input that has a writer, and reads it

entry

entry()

entry waits for the first record input that has a writer, and reads it.

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

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
Grantsnone
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).