1STRUCT KGDB_IO(9) KGDB Internals STRUCT KGDB_IO(9)
2
3
4
6 struct_kgdb_io - Describe the interface for an I/O driver to talk with
7 KGDB.
8
10 struct kgdb_io {
11 const char * name;
12 int (* read_char) (void);
13 void (* write_char) (u8);
14 void (* flush) (void);
15 int (* init) (void);
16 void (* pre_exception) (void);
17 void (* post_exception) (void);
18 };
19
21 name
22 Name of the I/O driver.
23
24 read_char
25 Pointer to a function that will return one char.
26
27 write_char
28 Pointer to a function that will write one char.
29
30 flush
31 Pointer to a function that will flush any pending writes.
32
33 init
34 Pointer to a function that will initialize the device.
35
36 pre_exception
37 Pointer to a function that will do any prep work for the I/O
38 driver.
39
40 post_exception
41 Pointer to a function that will do any cleanup work for the I/O
42 driver.
43
45 Jason Wessel <jason.wessel@windriver.com>
46 Author.
47
48 Tom Rini <trini@kernel.crashing.org>
49 Author.
50
51 Amit S. Kale <amitkale@linsyssoft.com>
52 Author.
53
55Kernel Hackers Manual 2.6. June 2019 STRUCT KGDB_IO(9)