Expand description
Sleepable task-context access to the runtime-owned physical console.
This layer owns console selection and handoff. It deliberately exposes raw receive items and complete log records; line discipline and terminal ABI policy remain in the consuming OS.
Re-exports§
pub use crate::serial::RxItem;
Structs§
- Console
LogDrop Report - Records discarded because the subscriber did not keep up.
- Console
LogRecord - One complete record produced by the shared kernel logger.
- Console
LogSubscription - Unique optional complete-record log subscription.
- Task
Console Input - Unique raw RX capability. It performs no CR/LF or terminal transformation.
- Task
Console Output - Cloneable output capability. All clones share one sleepable output lock.
Functions§
- is_
active - Returns whether this runtime owns the active physical console.
- output
- Returns a cloneable output capability for the active console.
- subscribe_
logs - Takes the unique complete-log-record subscription for the active console.
- take_
input - Takes the unique raw input capability for the active console.
- tty_
number - Returns the Linux-compatible
ttySnumber assigned to a serial runtime.