.\" 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" "17 July 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 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". .PP If you have comments on the formatting of this manpage, then please contact Michael Still (mikal@stillhq.com). .PP This documentation was generated with kernel version 2.5.75.