---
name: "struct_kgdb_io"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_kgdb_io"
---

# struct\_kgdb\_io(9)

Describe the interface for an I/O driver to talk with KGDB.

## NAME

struct\_kgdb\_io - Describe the interface for an I/O driver to talk with KGDB.

## SYNOPSIS

```
struct kgdb_io {
  const char * name;
  int (* read_char) (void);
  void (* write_char) (u8);
  void (* flush) (void);
  int (* init) (void);
  void (* pre_exception) (void);
  void (* post_exception) (void);
  int is_console;
};
```

## MEMBERS

name

Name of the I/O driver.

read\_char

Pointer to a function that will return one char.

write\_char

Pointer to a function that will write one char.

flush

Pointer to a function that will flush any pending writes.

init

Pointer to a function that will initialize the device.

pre\_exception

Pointer to a function that will do any prep work for the I/O driver.

post\_exception

Pointer to a function that will do any cleanup work for the I/O driver.

is\_console

1 if the end device is a console 0 if the I/O device is not a console

## AUTHOR

**Jason Wessel** \<jason.wessel@windriver.com\>

Author.

## COPYRIGHT
