The entry start_policy
The default start policy, and the rescue start policy with the rescue list. It reads the machine parts page and the list through their borders, starts each row in its order, sends Machine_Usable when each needed row runs, then starts a row again at its stop within its restart bound, or stops with Failed when a needed row is past it. A writer row starts with the wiring list of wiring_rows. Its one grant is Start_Policy: a root ring for Start, Stop, Machine_Usable and Wire, and the machine parts page. The tool refuses its source past 400 lines and an import past its set. No window; one line for each row that does not start.
start_policy module with an entry
- Hash
68e862729c8c2ecdec29ff2ebc0f33d97312510d7c4d875a3a00ea0abbfb81ad- Size
62593 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The default start policy, and the rescue start policy with the rescue list
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/system/start_policy |
| Boot image | yes: in the boot image, 62593 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() | Each stop before Machine_Usable writes its line first, and the root service then starts the rescue start policy |
entry
entry()
Each stop before Machine_Usable writes its line first, and the root service then starts the rescue start policy. A list that is absent or refused is a refused input; each other stop is a failure.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/system/start_policy/main.odin:46
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 start policy: its root ring starts and stops the processes of its list and says when the machine is usable, and it reads the machine parts page. It holds nothing else, so a fault in it reaches only the processes that it asked for. This service starts it, and refuses a Start of its name. See: The start policy in the repository | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| 32 pages for what it maps at its start, with their page tables, and the reserve of its wirings, which the tool checks against each list. |
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).
