1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct kgdb_io</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Using kgdb, kdb and the kernel debugger internals"><link rel="up" href="CommonBackEndReq.html#kgdbArchitecture" title="Architecture Specifics"><link rel="prev" href="API-struct-kgdb-arch.html" title="struct kgdb_arch"><link rel="next" href="kgdbocDesign.html" title="kgdboc internals"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct kgdb_io</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-kgdb-arch.html">Prev</a>&#160;</td><th width="60%" align="center">Architecture Specifics</th><td width="20%" align="right">&#160;<a accesskey="n" href="kgdbocDesign.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-kgdb-io"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct kgdb_io &#8212; 
2     Describe the interface for an I/O driver to talk with KGDB.
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct kgdb_io {
5  const char * name;
6  int (* read_char) (void);
7  void (* write_char) (u8);
8  void (* flush) (void);
9  int (* init) (void);
10  void (* pre_exception) (void);
11  void (* post_exception) (void);
12  int is_console;
13};  </pre></div><div class="refsect1"><a name="idp1114381900"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">name</span></dt><dd><p>
14   Name of the I/O driver.
15      </p></dd><dt><span class="term">read_char</span></dt><dd><p>
16   Pointer to a function that will return one char.
17      </p></dd><dt><span class="term">write_char</span></dt><dd><p>
18   Pointer to a function that will write one char.
19      </p></dd><dt><span class="term">flush</span></dt><dd><p>
20   Pointer to a function that will flush any pending writes.
21      </p></dd><dt><span class="term">init</span></dt><dd><p>
22   Pointer to a function that will initialize the device.
23      </p></dd><dt><span class="term">pre_exception</span></dt><dd><p>
24   Pointer to a function that will do any prep work for
25   the I/O driver.
26      </p></dd><dt><span class="term">post_exception</span></dt><dd><p>
27   Pointer to a function that will do any cleanup work
28   for the I/O driver.
29      </p></dd><dt><span class="term">is_console</span></dt><dd><p>
30   1 if the end device is a console 0 if the I/O device is
31   not a console
32      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-kgdb-arch.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="CommonBackEndReq.html#kgdbArchitecture">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="kgdbocDesign.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct kgdb_arch</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;kgdboc internals</td></tr></table></div></body></html>
33