pub fn sys_kernel_console_read(
buffer: &mut [u8],
flags: KernelConsoleReadFlags,
) -> Result<usize, KernelConsoleReadError>
Expand description
Read from the kernel console input, placing data into buffer
.
This is the INPUT mechanism, and not the BUFFER mechanism. For example, if the kernel console is a serial port, the input mechanism is the reading side of the serial console. To read from the kernel console output buffer, use sys_kernel_console_read_buffer.
Returns the number of bytes read on success and KernelConsoleReadError on failure.