.\" 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_FIND_DEVICE" "9" "09 April 2004" "" "" .SH NAME parport_find_device \- find a specific device .SH SYNOPSIS .sp \fB .sp int parport_find_device (const char * \fImfg\fB, const char * \fImdl\fB, int \fIfrom\fB); \fR .SH "ARGUMENTS" .TP \fB\fImfg\fB\fR required manufacturer string .TP \fB\fImdl\fB\fR required model string .TP \fB\fIfrom\fB\fR previous device number found in search, or NULL for new search .SH "DESCRIPTION" .PP This walks through the list of parallel port devices looking for a device whose 'MFG' string matches \fImfg\fR and whose 'MDL' string matches \fImdl\fR in their IEEE 1284 Device ID. .PP When a device is found matching those requirements, its device number is returned; if there is no matching device, a negative value is returned. .PP A new search it initiated by passing NULL as the \fIfrom\fR argument. If \fIfrom\fR is not NULL, the search continues from that device. .SH "ABOUT THIS DOCUMENT" .PP This documentation was generated with kernel version 2.6.0.