PARPORT_FIND_DEVICE

Section: (9)
Updated: 17 July 2003
Index Return to Main Contents

 

NAME

parport_find_device - find a specific device  

SYNOPSIS

int parport_find_device (const char * mfg, const char * mdl, int from);  

ARGUMENTS

mfg
required manufacturer string
mdl
required model string
from
previous device number found in search, or NULL for new search
 

DESCRIPTION

This walks through the list of parallel port devices looking for a device whose 'MFG' string matches mfg and whose 'MDL' string matches mdl in their IEEE 1284 Device ID.

When a device is found matching those requirements, its device number is returned; if there is no matching device, a negative value is returned.

A new search it initiated by passing NULL as the from argument. If from is not NULL, the search continues from that device.  

ABOUT THIS DOCUMENT

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".

If you have comments on the formatting of this manpage, then please contact Michael Still (mikal@stillhq.com).

This documentation was generated with kernel version 2.5.74.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 03:18:41 GMT, July 17, 2003