Skip to main content

Module console

Module console 

Source
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§

ConsoleLogDropReport
Records discarded because the subscriber did not keep up.
ConsoleLogRecord
One complete record produced by the shared kernel logger.
ConsoleLogSubscription
Unique optional complete-record log subscription.
TaskConsoleInput
Unique raw RX capability. It performs no CR/LF or terminal transformation.
TaskConsoleOutput
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 ttyS number assigned to a serial runtime.