The entry wiring
The delegated wiring service: creates and manages record-stream wirings between processes without holding root authority .
What it holds. Only its attenuated grants from the root service core:
SERVICE_RING: typed command and response ring with the core.SERVICE_STOPS_RING: the core'sstopsrecord output ring carryingProcess_Stop_Noticerecords so stopped processes are cleaned up without polling or broadcast.SERVICE_IMAGE: read-only view of the boot image for checking record descriptions during type matching.SERVICE_REGION: shared transfer region for copied wiring lists, resolved process identities, and prepared Start child ends.- Per-asker child wiring budgets with Spend only, per-process tokens with Give only, and wiring rings of processes that declare record streams.
It holds no machine handle, no root ring, no Control or Debug right on any process, and no Spend right on the root service budget. A fault in a wiring list stops this service alone, never the root service.
wiring module with an entry
- Hash
ffb6709120eb6c59677e446886de837e088339db6f9e42071688f42715143892- Size
107729 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The delegated wiring service: creates and manages record-stream wirings between processes without holding root authority
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/system/wiring |
| Boot image | yes: in the boot image, 107729 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 of the delegated wiring service: verifies its four attenuated context handles, then serves stops notices, process wiring completions, and core commands forever |
entry
entry()
Entry of the delegated wiring service: verifies its four attenuated context handles, then serves stops notices, process wiring completions, and core commands forever.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/system/wiring/main.odin:1112
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 | The delegated wiring service: its core ring, stops ring, read-only boot image view, and transfer region (wiring_service_start). It holds no root authority, no machine handle, and no Control on any process. | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| One thread serves SERVICE_RING, SERVICE_STOPS_RING, and mapped process wiring rings. All stream rings, end pages, terms pages, description files, and list pages are paid from each asker's child wiring 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 (its line); 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).
SERVICE_STOPS_RING constant of the package wiring_service
SERVICE_STOPS_RING :: 1
Memory (Read, Write): stops record output ring from the core.
src/library/modus/contract/wiring_service/wiring_service.odin:35
Process_Stop_Notice type of the package wiring_service
Process_Stop_Notice :: struct {...}
Process_Stop_Notice is the record emitted by the root core's stops.
src/library/modus/contract/wiring_service/wiring_service.odin:589
SERVICE_IMAGE constant of the package wiring_service
SERVICE_IMAGE :: 2
Memory (Read): boot image module files for type matching.
src/library/modus/contract/wiring_service/wiring_service.odin:36
