'\" t .\" Title: parport_claim .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Parallel Port Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PARPORT_CLAIM" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_claim \- claim access to a parallel port device .SH "SYNOPSIS" .HP \w'int\ parport_claim('u .BI "int parport_claim(struct\ pardevice\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 pointer to structure representing a device on the port .RE .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\&. .SH "COPYRIGHT" .br