6.6 Notifications

The kernel tells a store keeper of events by records it reads from the device descriptor.

A read() returns one or more whole ktrust_notification records and never part of one. A blocking read waits for a record. Under O_NONBLOCK, a read with nothing queued fails EAGAIN. The descriptor supports poll().

FieldTypeDescription
typeu32What happened
_padu32Reserved
hashu8[64]The object the record concerns, or zero
typeNameMeaning
1First seenA certificate was verified for the first time since boot. hash is its object hash
2OverflowRecords were dropped, or the record of seen certificates is full. hash is zero

The enumeration is closed (§6.7).

The kernel queues a bounded number of records (§6.A). If the queue fills, the kernel drops records and queues one Overflow in their place. A store keeper that reads an Overflow MUST list the seen certificates again to learn what it missed.

A store keeper that is not attached misses nothing it cannot recover: the record of seen certificates is complete since boot, whenever the store keeper attaches.

Edit this page