# console_driver Struct Reference

A console driver. More...

`#include <driver.h>`

Collaboration diagram for console_driver:

[legend]

## Data Fields
void(* | tx_commit )(struct console_driver *drv)
| Commit the console output buffer.
void(* | tx_make_room )(struct console_driver *drv, size_t goal)
| Make room for more characters in the console output buffer.
struct console_buffer | tx_buf
| The console buffer holding characters for transmission through this driver.

## Detailed Description

A console driver.

A console driver is responsible for emptying the console buffer and producing something the user can see, for example by pushing the characters out over a serial line.

Definition at line 138 of file driver.h.

## Field Documentation

struct console_buffer console_driver::tx_buf`[read]`

The console buffer holding characters for transmission through this driver.

Todo:
  This really belongs in struct console.

Definition at line 150 of file driver.h.

Referenced by console_drv_putchar(), and console_drv_write().

void(* console_driver::tx_commit)(struct console_driver *drv)

Commit the console output buffer.

Referenced by console_drv_commit().

void(* console_driver::tx_make_room)(struct console_driver *drv, size_t goal)

Make room for more characters in the console output buffer.

Referenced by console_drv_putchar(), and console_drv_write().

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

- include/console/driver.h