'\" t .\" Title: parport_remove_port .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Parallel Port Devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "PARPORT_REMOVE_PORT" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Parallel Port Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" parport_remove_port \- deregister a parallel port .SH "SYNOPSIS" .HP \w'void\ parport_remove_port('u .BI "void parport_remove_port(struct\ parport\ *\ " "port" ");" .SH "ARGUMENTS" .PP \fIport\fR .RS 4 parallel port to deregister .RE .SH "DESCRIPTION" .PP When a parallel port driver is forcibly unloaded, or a parallel port becomes inaccessible, the port driver must call this function in order to deal with device drivers that still want to use it\&. .PP The parport structure associated with the port has its operations structure replaced with one containing \*(Aqnull\*(Aq operations that return errors or just don\*(Aqt do anything\&. .PP Any drivers that have registered themselves using \fBparport_register_driver\fR are notified that the port is no longer accessible by having their \fBdetach\fR routines called with \fIport\fR as the parameter\&. .SH "COPYRIGHT" .br