Skip to main content

vgabuf_write

Function vgabuf_write 

Source
pub fn vgabuf_write(line: &[u8])
Expand description

Write a line into the circular buffer.

line should be pre-formatted (including colour codes if desired) and should not exceed VGABUF_LINE_LEN - 1 bytes. Trailing bytes beyond the capacity are silently truncated.

This is lock-free (single atomic increment) and safe to call from interrupt handlers or any CPU core.