modus
Menu
On this page

The entry generic_source

The writer of the machine test of the generic record inputs . The test module generic_wiring starts it with no list, then wires its record outputs:

  • left and right, of the record Probe, the two sources of merge;
  • other, of the record Other, the source of another record, which a second source of merge cannot be.

It waits, by a state, until left and right each have a reader, then writes PROBES_OF_A_SIDE probes into each, one in turn, ends both, and stops itself with Done. The mark of a probe is its number modulo 2, so filter with the condition mark = 1 keeps half of them.

Start: by generic_wiring only. What a reader sees: no window; one line when it wrote, or "generic_source: WRONG: ...".

See: Record outputs and record inputs of a module: typed streams of records between processes: Generic record inputs and the utility modules in the repository

generic_source module with an entry

Hash
770ede67188e9b76314198e35174de15966a5a4502c5669ca8fe548d99174d4c
Size
53248 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The writer of the machine test of the generic record inputs

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

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