Scroll to navigation

STRUCT KGDB_IO(9) Kernel Debugger Internals STRUCT KGDB_IO(9)

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

const char * name

Name of the I/O driver.

int (*) (void) read_char

Pointer to a function that will return one char.

void (*) (u8) write_char

Pointer to a function that will write one char.

void (*) (void) flush

Pointer to a function that will flush any pending writes.

int (*) (void) init

Pointer to a function that will initialize the device.

void (*) (void) pre_exception

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

void (*) (void) post_exception

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

int 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

July 2017 Kernel Hackers Manual 4.12