modus
Menu
On this page

The entry store_importer

A disk process that imports a library module of the store module_files: the test of the import scan.

What it is for. Its import names the hash of the module store_library, which no boot image holds. The root service finds that file in the store module_files of the principal by the hash of its bytes, and the loader binds the import slot to it. This process calls the export and writes the result. It is also the disk process of the test that has a window: the menu of the windows and the monitor show it by its nickname, with the hash prefix of its file.

Start: start_from_disk("store_importer", hash) in the console, on a machine whose data disk holds the store module_files with this file and the file of store_library. The modus tool writes that disk for the test part disk_processes, and prints the hashes.

Grants: none by its name, as each disk process.

What a reader sees. One line on the log: the result of triple(14) from the module of the store. A window with the same result. The window asks for the title console: the compositor names it store_importer, the nickname that the root service gave, so the window of a disk process cannot have the title of a process of the system. Its budget holds one process, so it starts no child under such a name either.

See: Module contract: A module from a disk

store_importer module with an entry

Hash
4a809419a4048dd0f6cd78a56ea4cac37405db4c762c739e4733a4a297f67432
Size
216779 bytes
Exports
0
Imports
1
Imported by
0
License
MIT

A disk process that imports a library module of the store module_files: the test of the import scan

FactValue
KindModules with an entry
Sourcesrc/modules/tests/store_importer
Boot imageno: not in the boot image
Build settingsnone: the defaults of the source
Imports
Imported bynone

Neighbours

What it imports, at its left, and what imports it, at its right: the part of the module graph that touches it.

store_importer store_library

Exports

ExportWhat it does
entry()The entry of store_importer: it calls the import one time, writes the line, shows the result in its window, then reads the events of its window until it is stopped

entry

entry()

The entry of store_importer: it calls the import one time, writes the line, shows the result in its window, then reads the events of its window until it is stopped.

Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/tests/store_importer/main.odin:53

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
GrantsnoneNo row: the kernel starts the root service, and a disk process has the start grant set of its row in the disk grant table of its principal.
Other terms of its start grant setnone
Budget that it asks for
  • working memory pages 2018
  • pages of its threads 72
  • pages of the pictures of its window 120
  • pages of the module and its imports from the files of the build
  • processes the least
  • threads the least
The least budget of 2048 pages, in which it ran before it stated its window, less that window at the scale 1 (30 pages): its module, its stack and its tables. The tool counts the window at the largest scale . See: Module contract: The budget that a module asks for

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