The entry principals
Delegated principals service implementing Role.Principals .
Owns principal registration, session lifecycle, principal disk grant tables strictly bounded to Store, principal-0 Start_Policy, and Client_Key classes, live remote/remote_display client keys, and principal-0 start policy choice validation using only its attenuated service ring and shared transfer region.
principals module with an entry
- Hash
a58cc8e79e1db86fa56269c83118d04507873763d6efa0482bc565a60522a545- Size
192217 bytes- Exports
1- Imports
0- Imported by
0- License
- MIT
Delegated principals service implementing Role.Principals
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/system/principals |
| Boot image | yes: in the boot image, 192217 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 |
|---|---|
status(out: Principals_Status) -> Integer | writes aggregate principals service counters into out |
entry() | initializes the delegated principals service ring and serves principal registration, session lifecycle, disk grant table updates, client keys, and start policy choice validation until stopped |
status
status(out: ) ->
status writes aggregate principals service counters into out.
out:
- When it fails
- a negative result, and the error record
src/modules/system/principals/main.odin:61
entry
entry()
entry initializes the delegated principals service ring and serves principal registration, session lifecycle, disk grant table updates, client keys, and start policy choice validation until stopped.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/system/principals/main.odin:289
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 principals service: named principals, session lifecycle, disk grant tables, remote client keys, and principal 0 start policy choice. Holds no root ring and no machine authority. | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| Working memory budget for the freestanding principals service process and its fixed-capacity principal, disk grant, and client key staging buffers. |
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).
Principals_Status record of a module
A record of the module principals: 48 bytes, aligned on 8 bytes, 0 bytes of padding.
principal_counti6408 bytesactive_sessionsi6488 bytesdisk_rows_appliedi64168 bytesactive_client_keysi64248 bytesstart_policy_updatesi64328 bytestotal_refusalsi64408 bytes
Integer wire form
A wire form of the module contract: one word of a call. A signed integer of 64 bits, in a register.
Error_Record record of a module
A record of the module principals: 56 bytes, aligned on 8 bytes, 0 bytes of padding.
kindi6408 bytesuniti6488 bytesoperationi64168 bytesargumenti64248 bytesvaluei64328 byteslimiti64408 bytesfoundi64488 bytes
