modus
Menu
On this page

The entry output_wiring

The asker of the machine test of the record outputs . It starts output_writer, output_reader and output_side, wires them with Wire and with the wiring list of Start, and tries each refusal of the root service. Each refusal is checked whole: its status, each field of its error record, and the budget of this process, which did not change: the rings of a wiring are paid from the budget of its asker.

The cases, in order:

  1. 1. The refusals of Wire before the list page and of its words; the list page refused by the budget; the list page; then the revocation, the unmap and the close of the handle of this process, and a new handle of the same page.
  2. 2. The probes: a reader in the wiring list of the start of the writer joins at 0, and a reader that a Wire adds after five probes joins at
    1. 5. Before that Wire: the refusals of a wiring, among them a second wiring of the record input of the first reader, refused by the count One, and lent memory handles in more rounds than the handle table of the root service holds.
  3. 3. The refusals of Start and of its list: its words; the record output log of a service, with Wire and with Start, with an index, twice, with the pace Never_Holds_Writer and with a condition; the rows of the asker past six; and a list whose rings the budget refuses after some of them were made.
  4. 4. The end words: Writer_Stopped, Reader_Stopped.
  5. 5. The record output log of log_flood, wired to this asker at its start: each record, in order, while the kernel refuses each of its calls; then Writer_Stopped.
  6. 6. The limit of the wirings of an asker, one past it with Wire and with the list of a Start, and the revocation of the grant wirings: Revoked.
  7. 7. A side that writes its own words: a refused end, words that the root service drops, and a wiring ring that it never reads, until the root service refuses an end for it with Busy.
  8. 8. A wiring to this process as its asker, read with asker_read; then this process stops: Asker_Stopped.

Start: start("output_wiring") in the console. What a reader sees: no window; one line "output_wiring: ...: as it must" for each case, or a line "output_wiring: 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_wiring module with an entry

Hash
0d8f6c4d4daa5679684ebf36202f7844c1dca4b114ac787a046ad02ef4b74d64
Size
109553 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The asker of the machine test of the record outputs

FactValue
KindModules with an entry
Sourcesrc/modules/tests/output_wiring
Boot imageyes: in the boot image, 109553 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()

entry

entry()
Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/tests/output_wiring/main.odin:420

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
GrantsThe asker of the test of the record outputs: Start, Wire, Connect and Revoke are commands of the root ring, which only the grant Root_Ring sends. It starts and wires only its own children, and revokes only its own grant wirings. 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
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).