notes

PageFrame::SLICE: a capability naming part of a run

(Milestone 599 (a frame per filesystem client channel), built 2026-09-27 by lane milestone/599-pool on calef's ruling of that day, option 4 of the pool's fork. The method's name and number, and this page's stem, are provisional. The design/decisions/ record is the maintainer's to mint; this page is its source, written in the shape §102 (a Frame names a run of pages) was.)

What it is

invoke(frame, SLICE, first, count, _) derives a new PageFrame capability naming the count pages that start first pages into frame's run, with frame's rights. It returns the slot the new capability landed in, the way Rendezvous::BADGE does.

Needs GRANT on frame
Makes PageFrame(base + first * 4096, count), same rights, in a fresh slot of the caller's table
Refuses NotPermitted without GRANT; BadPointer for count of 0, a range past the run's end, or first + count overflowing; OutOfMemory when the table is full
Changes nothing about frame, its mappings or any other capability

§102 anticipated it: a consumer "can hold two capabilities: Frame(phys, 401) and Frame(phys + 401 * 4096, 74)". §102 did not say how the second is made from the first, and until now nothing could make it.

Why it exists

The file service keeps eight client windows (§230 (badged endpoint capabilities)), and the progenitor has to put exactly one of them in each client. MAP_INTO maps a capability's whole run, so a capability per window was the only way, and the progenitor's 24-slot table cannot hold seven more. Now the kernel grants the whole pool as one run in the slot that held window 0's page, and the progenitor slices one page of window w, maps it into the client, and deletes the slice. That costs no permanent slot and one transient one per build.

Option 5, an offset on MAP_INTO, was refused in the ruling: its narrowing lasts one call while the holder keeps the whole pool, and it changes an argument shape §102 kept fixed. A slice narrows by deriving a capability, the same move as a badge.

Why GRANT

Revocation in this tree is scoped to the exact object: PageFrame::REVOKE deletes the capabilities equal to its own and unmaps what was mapped under that object (§132 (what PageFrame::REVOKE owes an overlapping run), option C). A slice is a different object. So revoking the pool does not delete a slice, and does not unmap what a client mapped through one. Making a capability that its source's revocation cannot reach is a delegation-class power, so it takes the delegation right, as BADGE does.

Where the pool is used

BUGS