.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PARPORT_UNREGISTER_PORT" "" "06 October 2005" "" ""
.SH NAME
parport_unregister_port \- deregister a parallel port
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void parport_unregister_port (struct parport * \fIport\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIport\fB\fR
parallel port to deregister
.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 'null'
operations that return errors or just don't 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.