modus
Menu
On this page

The entry settings_stand_in

A holder of the role Settings that is not the module of the boot image . The machine test of the plan of principal 0 names it in a plan as the holder of Settings; at the next start of the machine the row "settings" of the start list reaches it in place of settings.

It declares the exports of the contract of the role Settings, so the root service accepts it as a holder, and gives the defaults of the settings. It serves none of them: the test needs only the proof that the start policy started it, so it writes its line and stops with Done, as the boot pass of settings does.

Start: by the start policy, as the holder of Settings that a plan of principal 0 gives. What a reader sees: no window; one line "settings_stand_in: the start policy started the holder of the role Settings for the pass 1" (Boot).

See: Declarations: The plan of principal 0 at the start in the repository

settings_stand_in module with an entry

Hash
797ef3e52f5c9650e21d3c4f454a7576e353c6e9a803bdff6ebcfb3bd8dba44a
Size
36864 bytes
Exports
4
Imports
0
Imported by
0
License
MIT

A holder of the role Settings that is not the module of the boot image

FactValue
KindModules with an entry
Sourcesrc/modules/tests/settings_stand_in
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
set_time_zone(zone: Text) -> Integerrefuses each zone: this holder keeps no setting
font() -> Fontgives the font of the defaults
appearance() -> Appearancegives the appearance of the defaults
scale() -> Scalegives the scale of the defaults
entry()

set_time_zone

set_time_zone(zone: ) -> 

set_time_zone refuses each zone: this holder keeps no setting.

The result is a negative number with the error record Unsupported.

Parameters
  • zone:
Result
When it fails
a negative result, and the error record
Source
src/modules/tests/settings_stand_in/main.odin:28

font

font() -> Font

font gives the font of the defaults.

Parameters
none
Result
Font
Source
src/modules/tests/settings_stand_in/main.odin:34

appearance

appearance() -> Appearance

appearance gives the appearance of the defaults.

Parameters
none
Result
Appearance
Source
src/modules/tests/settings_stand_in/main.odin:40

scale

scale() -> Scale

scale gives the scale of the defaults.

Parameters
none
Result
Scale
Source
src/modules/tests/settings_stand_in/main.odin:46

entry

entry()
Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/tests/settings_stand_in/main.odin:51

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
GrantsnoneThe holder of Settings that the plan of that test names: it writes its line and stops, and needs no grant.
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).

Text wire form

A wire form of the module contract: one word of a call. The address of a slice record {address, count} of UTF-8 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 settings_stand_in: 56 bytes, aligned on 8 bytes, 0 bytes of padding.

  • kindi6408 bytes
  • uniti6488 bytes
  • operationi64168 bytes
  • argumenti64248 bytes
  • valuei64328 bytes
  • limiti64408 bytes
  • foundi64488 bytes