.\" 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_CLAIM" "9" "09 October 2005" "" ""
.SH NAME
parport_claim \- claim access to a parallel port device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int parport_claim (struct pardevice * \fIdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
pointer to structure representing a device on the port
.SH "DESCRIPTION"
.PP
This function will not block and so can be used from interrupt
context. If \fBparport_claim\fR succeeds in claiming access to
the port it returns zero and the port is available to use. It
may fail (returning non-zero) if the port is in use by another
driver and that driver is not willing to relinquish control of
the port.