.\" This documentation was generated from the book titled "The Linux 2.4 Parallel Port Subsystem", which is part of the Linux kernel source. .\" .\" Documentation by: Tim Waugh (twaugh@redhat.com) .\" Documentation copyright: 1999-2000 Tim Waugh .\" This documentation comes with the following legal notice: .\" .\" Permission is granted to copy, distribute and/or modify this .\" document under the terms of the GNU Free Documentation License, .\" Version 1.1 or any later version published by the Free Software .\" Foundation; with no Invariant Sections, with no Front-Cover Texts, .\" and with no Back-Cover Texts. A copy of the license is included .\" in the section entitled "GNU Free Documentation License". .\" .\" For comments on the formatting of this manpage, please contact Michael Still .\" 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_OPEN" "9" "14 August 2003" "" "" .SH NAME parport_open \- find a device by canonical device number .SH SYNOPSIS .sp \fB .sp struct pardevice * parport_open (int \fIdevnum\fB, const char * \fIname\fB, int (*\fIpf\fB) void *, void (*\fIkf\fB) void *, void (*\fIirqf\fB) int, void *, struct pt_regs *, int \fIflags\fB, void * \fIhandle\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdevnum\fB\fR canonical device number .TP \fB\fIname\fB\fR name to associate with the device .TP \fB\fIpf\fB\fR preemption callback .TP \fB\fIkf\fB\fR kick callback .TP \fB\fIirqf\fB\fR interrupt handler .TP \fB\fIflags\fB\fR registration flags .TP \fB\fIhandle\fB\fR driver data .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. See \fBparport_find_device\fR and \fBparport_find_class\fR. .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 "ABOUT THIS DOCUMENT" .PP This documentation was generated with kernel version 2.6.0.