1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>pnp_register_protocol</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch02s06.html" title="Device drivers PnP support"><link rel="prev" href="ch02s06.html" title="Device drivers PnP support"><link rel="next" href="API-pnp-unregister-protocol.html" title="pnp_unregister_protocol"></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">pnp_register_protocol</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s06.html">Prev</a> </td><th width="60%" align="center">Device drivers PnP support</th><td width="20%" align="right"> <a accesskey="n" href="API-pnp-unregister-protocol.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-pnp-register-protocol"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>pnp_register_protocol — 2 adds a pnp protocol to the pnp layer 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">pnp_register_protocol </b>(</code></td><td>struct pnp_protocol * <var class="pdparam">protocol</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1110747156"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>protocol</code></em></span></dt><dd><p> 4 pointer to the corresponding pnp_protocol structure 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1110748804"></a><h2>Ex protocols</h2><p> 6 ISAPNP, PNPBIOS, etc 7</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s06.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-pnp-unregister-protocol.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Device drivers PnP support </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">pnp_unregister_protocol</span></td></tr></table></div></body></html> 8