modus
Menu
On this page

The entry generic_wiring

The asker of the machine test of the generic record inputs, merge and filter. It starts generic_source and filter with no list, then tries each refusal of the root service, each with its status, its error record and the budget of this process unchanged:

  1. 1. a second source of merge.sources of another record than the first;
  2. 2. a Wire of filter.kept before a wiring fixed the type of filter.source;
  3. 3. a condition on merge.merged that names no field of the record that merge.sources fixed;
  4. 4. more wirings than an asker holds.

Then one start list: filter.kept to this process, generic_source.left and generic_source.right to merge.sources, and merge.merged to filter.source with the terms mark = 1. This process reads kept: the joined record of 0, each probe of mark 1 of each side once, then a clean end. It checks the order of the probes of each side, and no order across the two sides: merge promises none.

Last, filter with the terms of a field 0: it ends kept at once with the error record that names the field.

Start: start("generic_wiring") in the console. What a reader sees: no window; one line "generic_wiring: ...: as it must" for each case, then "generic_wiring: ok", or a line "generic_wiring: WRONG: ...". It stops itself with Done, or Failed after a WRONG line.

See: Record outputs and record inputs of a module: typed streams of records between processes: The decisions of the generic record inputs in the repository

generic_wiring module with an entry

Hash
98fb610da0e40a88b5ccb4bc49f80dc7d588962d32a6b5cc1a254f87221a6ea6
Size
75945 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The asker of the machine test of the generic record inputs, merge and filter

FactValue
KindModules with an entry
Sourcesrc/modules/tests/generic_wiring
Boot imageyes: in the boot image, 75945 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/generic_wiring/main.odin:416

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 generic record inputs: Start, Wire and Stop are commands of the root ring. Its writer needs 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).