The entry output_count_reader
A reader of the record output of output_counter, for the wiring list that the console gives a start. The console starts it with a list whose row wires output_counter.counts, with the condition status = 404, to its record input counts, before its first instruction.
It reads the joined record, then three records, and checks each one: the status 404, a serial that leaves 2 when divided by 3, and a serial past the one before. The writer leaves out the records that fail the condition, so the serials of its ring jump by 3: the border of this reader takes them only because the end of its wiring says that the ring has a condition.
Start: by the console, with a wiring list. What a reader sees: no window; one line "output_count_reader: ...: as it must", or a line "output_count_reader: WRONG: ...". It stops itself with the outcome Done, or Failed after a WRONG line.
output_count_reader module with an entry
- Hash
6390cfa39c32958ff605356e5b30185888d8aacd1937da4a358753d472a2d45e- Size
53248 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
A reader of the record output of output_counter, for the wiring list that the console gives a start
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/tests/output_count_reader |
| Boot image | yes: in the boot image, 53248 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() |
entry
entry()
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/tests/output_count_reader/main.odin:43
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
| What | Value | As the root service says |
|---|---|---|
| Grants | none | Its reader in the wiring list that the console gives its start: its end comes in its wiring ring before its first instruction. |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| 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).
counts global variable of the package output_counter
counts: system.Record_Output(Counted)
One record each time the writer counts, while a reader is wired.
