# console_buffer Struct Reference

Buffer holding input or output data for a console. More...

`#include <driver.h>`

Collaboration diagram for console_buffer:

[legend]

## Data Fields
struct ring_head | ring
| Ring buffer state.
char | data [CONSOLE_BUF_SIZE]
| Ring buffer data.

## Detailed Description

Buffer holding input or output data for a console.

Definition at line 55 of file driver.h.

## Field Documentation

char console_buffer::data[CONSOLE_BUF_SIZE]

Ring buffer data.

Definition at line 59 of file driver.h.

Referenced by console_buf_extract_char(), console_buf_insert_char(), and console_drv_write().

struct ring_head console_buffer::ring`[read]`

Ring buffer state.

Definition at line 57 of file driver.h.

Referenced by console_buf_extract_char(), console_buf_insert_char(), console_buf_unused(), console_buf_unused_before_end(), console_buf_used(), and console_drv_write().

The documentation for this struct was generated from the following file:

- include/console/driver.h