Module selectable

Module selectable 

Source
Expand description

Selectable capability for readiness and blocking waits used by select/pselect.

This capability provides a minimal, ABI-agnostic interface that kernel objects can implement to participate in select-like syscalls. It is intentionally simple: callers provide an interest (read/write/except), can query the current readiness, and can block the current task until the interest becomes ready or an optional timeout expires.

Timeout semantics use kernel ticks to avoid coupling to any specific time unit representation at the ABI layer. See crate::timer for conversion helpers (e.g., ns_to_ticks).

Structs§

ReadyInterest
Interest mask for readiness queries and waits.
ReadySet
Result mask for readiness queries.

Enums§

SelectWaitOutcome
Outcome of a wait operation.

Traits§

Selectable
Objects that can be waited on by select/pselect.