<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >parport_unregister_driver</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Linux 2.4 Parallel Port Subsystem" HREF="book1.html"><LINK REL="UP" TITLE=" Linux parallel port driver API reference " HREF="a950.html"><LINK REL="PREVIOUS" TITLE="parport_register_driver" HREF="r1138.html"><LINK REL="NEXT" TITLE="parport_get_port" HREF="r1215.html"></HEAD ><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The Linux 2.4 Parallel Port Subsystem</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="r1138.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="r1215.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="AEN1177" ></A ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >parport_unregister_driver</SPAN ></SPAN ></H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN1181" ></A ><H2 >Name</H2 >parport_unregister_driver -- deregister a parallel port device driver </DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN1184" ></A ><H2 >Synopsis</H2 ><DIV CLASS="FUNCSYNOPSIS" ><A NAME="AEN1186" ></A ><P ></P ><P ><CODE ><CODE CLASS="FUNCDEF" >void <TT CLASS="FUNCTION" >parport_unregister_driver </TT ></CODE >(struct parport_driver * <TT CLASS="PARAMETER" ><I >arg</I ></TT >);</CODE ></P ><P ></P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN1192" ></A ><H2 >Arguments</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="PARAMETER" ><I >arg</I ></TT ></DT ><DD ><P > structure describing the driver that was given to <TT CLASS="FUNCTION" >parport_register_driver</TT > </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN1201" ></A ><H2 >Description</H2 ><P > This should be called by a parallel port device driver that has registered itself using <TT CLASS="FUNCTION" >parport_register_driver</TT > when it is about to be unloaded. </P ><P > When it returns, the driver's <TT CLASS="FUNCTION" >attach</TT > routine will no longer be called, and for each port that <TT CLASS="FUNCTION" >attach</TT > was called for, the <TT CLASS="FUNCTION" >detach</TT > routine will have been called. </P ><P > If the caller's <TT CLASS="FUNCTION" >attach</TT > function can block, it is their responsibility to make sure to wait for it to exit before unloading. </P ><P > All the driver's <TT CLASS="FUNCTION" >detach</TT > calls are guaranteed to have finished by the time this function returns. </P ><P > The driver's <TT CLASS="FUNCTION" >detach</TT > call is not allowed to block. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="r1138.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="r1215.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >parport_register_driver</SPAN ></SPAN ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="a950.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >parport_get_port</SPAN ></SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >