.\" 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_DEV_GET" "" "06 October 2005" "" ""
.SH NAME
pci_dev_get \- increments the reference count of the pci device structure
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct pci_dev * pci_dev_get (struct pci_dev * \fIdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
the device being referenced
.SH "DESCRIPTION"
.PP
Each live reference to a device should be refcounted.
.PP
Drivers for PCI devices should normally record such references in
their \fBprobe\fR methods, when they bind to a device, and release
them by calling \fBpci_dev_put\fR, in their \fBdisconnect\fR methods.
.PP
A pointer to the device with the incremented reference counter is returned.