<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>wimax_dev_rm</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs" /><link rel="up" href="ch01s06.html" title="WiMAX" /><link rel="prev" href="re192.html" title="wimax_dev_add" /><link rel="next" href="re194.html" title="struct wimax_dev" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>wimax_dev_rm</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re192.html">Prev</a> </td><th width="60%" align="center">WiMAX</th><td width="20%" align="right"> <a accesskey="n" href="re194.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="wimax_dev_rm"><a id="API-wimax-dev-rm"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>wimax_dev_rm — Unregister an existing WiMAX device </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">wimax_dev_rm </b>(</code></td><td>struct wimax_dev * <var class="pdparam">wimax_dev</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1" title="Arguments"><a id="id2747717"></a><h2>Arguments</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>wimax_dev</code></em></span></dt><dd><p> WiMAX device descriptor </p></dd></dl></div></div><div class="refsect1" title="Description"><a id="id2747744"></a><h2>Description</h2><p> Unregisters a WiMAX device previously registered for use with <code class="function">wimax_add_rm</code>. </p><p> IMPORTANT! Must call before calling <code class="function">unregister_netdev</code>. </p><p> After this function returns, you will not get any more user space control requests (via netlink or debugfs) and thus to wimax_dev->ops. </p><p> Reentrancy control is ensured by setting the state to <code class="constant">__WIMAX_ST_QUIESCING</code>. rfkill operations coming through wimax_*rfkill*() will be stopped by the quiescing state; ops coming from the rfkill subsystem will be stopped by the support being removed by <code class="function">wimax_rfkill_rm</code>. </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re192.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re194.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>wimax_dev_add</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>struct wimax_dev</span></td></tr></table></div></body></html>