The program origin
A demonstration of the origin of a handle and of Handle_Revoke (properties 2 and 13).
The kernel keeps, for each handle and each mapping, the handle that it came from. A program takes back what came from a handle of its own: the copies, the handles that other programs received, and their mappings. The window shows each case and the answer of the kernel.
| Fact | Value |
|---|---|
| Source | programs/origin |
| Boot image | in the boot image; the image is not built, so its size is not known |
| Imports | none |
| Imported by | none |
Exports
| Export | What it does |
|---|---|
| entry() |
Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | {} | Not named in grants_of: the grants of each other program. |
| Budget: pages, programs, threads | {pages = 2048, programs = 2, threads = 1} | One program that only receives. |
Read from grants_of and things_of in programs/root/main.odin; budget_of in the same file adds the limits of processor time and of log records.
