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
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/system/disk_processes |
| Boot image | yes: in the boot image, 86016 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: Disk_Processes_Status) -> Integer | writes 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.
out:
- When it fails
- a negative result, and the error record
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.
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
| What | Value | As the root service says |
|---|---|---|
| Grants | The 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 set | none | |
| Budget that it asks for |
| 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 bytesstarts_requestedi6488 bytesrefusalsi64168 bytescommands_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 bytesuniti6488 bytesoperationi64168 bytesargumenti64248 bytesvaluei64328 byteslimiti64408 bytesfoundi64488 bytes
