.\" 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" "" "06 October 2005" "" "" .SH NAME parport_open \- find a device by canonical device number .SH SYNOPSIS "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\&.