modus
Menu
On this page

The entry disk_processes

The delegated service disk_processes: the holder of the role Disk_Processes.

It reads the module file of a disk process, and the files of its import scan, from the store module_files of the principal of each load, through a connection that reads only, which the core gives with the command Load. The bytes go into memory that the core lends; the core checks each hash on its own mapping after the end of each loan, then starts the module from the request Start_From_Bytes. The core never reads a module file from the disk, and never waits for the storage service during a load.

The rules of the load are in the machine of internal:disk_processes/disk_processes_core; this file carries its actions to the storage service and to the core.

See: The split of the root service: The disk processes service in the repository

disk_processes module with an entry

Hash
1a8ef737bb619dca82f78b6d459286ed5180eaa0f24a8c5e4d1868e80ec1482d
Size
86016 bytes
Exports
1
Imports
0
Imported by
0
License
MIT

The delegated service disk_processes: the holder of the role Disk_Processes

FactValue
KindModules with an entry
Sourcesrc/modules/system/disk_processes
Boot imageyes: in the boot image, 86016 bytes in this build
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
status(out: Disk_Processes_Status) -> Integerwrites the counts of the loads into out
entry()opens the ring of the core, the transfer region and the boot image, then serves the loads

status

status(out: ) -> 

status writes the counts of the loads into out.

Parameters
  • out:
Result
When it fails
a negative result, and the error record
Source
src/modules/system/disk_processes/main.odin:77

entry

entry()

entry opens the ring of the core, the transfer region and the boot image, then serves the loads.

Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/system/disk_processes/main.odin:334

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
GrantsThe delegated disk_processes service: it reads the module file of a disk process and its imports through a connection that reads only, into memory that the core lends, and asks for Start_From_Bytes (disk_processes_delegation.odin). Holds no root ring and no machine authority.
Other terms of its start grant setnone
Budget that it asks for
  • working memory pages 64
  • pages of its threads 72
  • pages of the pictures of its window 0
  • pages of the module and its imports from the files of the build
  • processes 1
  • threads 1
The page tables of its mappings: the boot image, one lent file of 4 MiB, and the call ring and the call region of the storage connection.

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

Disk_Processes_Status record of a module

A record of the module disk_processes: 32 bytes, aligned on 8 bytes, 0 bytes of padding.

  • loadsi6408 bytes
  • starts_requestedi6488 bytes
  • refusalsi64168 bytes
  • commands_refusedi64248 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 disk_processes: 56 bytes, aligned on 8 bytes, 0 bytes of padding.

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