.\" 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" "29 May 2003" "" ""
.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
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.70.