.\" 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 "PCI_GET_CLASS" "9" "09 October 2005" "" ""
.SH NAME
pci_get_class \- begin or continue searching for a PCI device by class
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct pci_dev * pci_get_class (unsigned int \fIclass\fB, struct pci_dev * \fIfrom\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIclass\fB\fR
search for a PCI device with this class designation
.TP
\fB\fIfrom\fB\fR
Previous PCI device found in search, or NULL for new search.
.SH "DESCRIPTION"
.PP
Iterates through the list of known PCI devices. If a PCI device is
found with a matching \fIclass\fR, the reference count to the device is
incremented and a pointer to its device structure is returned.
Otherwise, NULL is returned.
A new search is initiated by passing NULL to the \fIfrom\fR argument.
Otherwise if \fIfrom\fR is not NULL, searches continue from next device
on the global list. The reference count for \fIfrom\fR is always decremented
if it is not NULL\&.