'\" t .\" Title: parport_open .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Parallel Port Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PARPORT_OPEN" "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_open \- find a device by canonical device number .SH "SYNOPSIS" .HP \w'struct\ pardevice\ *\ parport_open('u .BI "struct pardevice * parport_open(int\ " "devnum" ", const\ char\ *\ " "name" ");" .SH "ARGUMENTS" .PP \fIdevnum\fR .RS 4 canonical device number .RE .PP \fIname\fR .RS 4 name to associate with the device .RE .SH "DESCRIPTION" .PP This function is similar to \fBparport_register_device\fR, except that it locates a device by its number rather than by the port it is attached to\&. .PP All parameters except for \fIdevnum\fR are the same as for \fBparport_register_device\fR\&. The return value is the same as for \fBparport_register_device\fR\&. .SH "COPYRIGHT" .br