modus
Menu
On this page

The entry stops_failed

A row of the test of the restarts of a start policy .

What it shows. A row that stops itself with the stop outcome Failed starts again while it has restarts left, and stays stopped after the last one.

Start: the rescue list of the image of the test of the rescue names it, with a count of restarts. Only that image holds it. It needs no grant.

What a reader sees. No window: the line stops_failed: it fails on purpose at each start, and the lines of the root service and of the start policy about each stop.

See: The start policy: The subtle points in the repository

stops_failed module with an entry

Hash
486a9530bb46d72222cd81462bb6ed82ca4ea0ad7b6f1ebd6778c53e066cc8f3
Size
32768 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

A row of the test of the restarts of a start policy

FactValue
KindModules with an entry
Sourcesrc/modules/tests/stops_failed
Boot imageno: not in the boot image
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/stops_failed/main.odin:20

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