pub fn sys_kernel_console_read_buffer(
buffer: &mut [u8],
flags: KernelConsoleReadBufferFlags,
) -> Result<usize, KernelConsoleReadBufferError>
Expand description
Read from the kernel console buffer, placing data into buffer
.
This is the BUFFER mechanism, and not the INPUT mechanism. All writes to the kernel console get placed in the buffer and copied out to the underlying console device in the kernel. If you want to read from the INPUT device, see sys_kernel_console_read.
Returns the number of bytes read on success and KernelConsoleReadBufferError on failure.