modus
Menu
On this page

The entry notify_border_of_the_compositor

The test of the border of compositor.notify for a caller that does not act for the principal. Its name has 31 bytes, the longest name that the root service gives a process: each card carries it as its label.

The checks, in this order:

  • an empty title, a title of 97 bytes and a body of 257 bytes are refused with Empty and Too_Long, and change nothing: the first card after them is accepted at once (no time of the rate was kept), and the bound below finds 3 cards (no card was added);
  • a post right after an accepted one is refused with Busy, unit Milliseconds, limit 500; or it came 500 ms or more after the first by the clock of the system, and the rate was not tried: no check of a speed;
  • posts 500 ms apart are accepted until the caller shows 3 cards; the next is refused with Full, unit Requests, limit 3, found 3.

A card leaves after 8 seconds: a post that comes so late that a card left is accepted, and the loop posts again, up to POST_LIMIT posts.

Start: start("notify_border_of_the_compositor") in the console. What a reader sees: up to 3 cards labelled with its name, and one line "notify_border_of_the_compositor: ok, ..." or "...: WRONG: ...".

See: The tray widgets: The export notify in the repository

notify_border_of_the_compositor module with an entry

Hash
93e6f02468b9ef3434ca871b7e28fd469ea39d7498c48e7401fb029615b05c55
Size
57344 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The test of the border of compositor.notify for a caller that does not act for the principal

FactValue
KindModules with an entry
Sourcesrc/modules/tests/notify_border_of_the_compositor
Boot imageyes: in the boot image, 57344 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
entry()

entry

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

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 test of the border of compositor.notify: a connection to the compositor that does not act for the principal, and the boot image for the description of its exports (The tray widgets in the repository, "The export notify").
Other terms of its start grant setcallable = {0 = "compositor"}
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).