---
name: "pci_dev_get"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_dev_get"
---

# pci\_dev\_get(9)

increments the reference count of the pci device structure

## NAME

pci\_dev\_get - increments the reference count of the pci device structure

## SYNOPSIS

**struct pci\_dev \* pci\_dev\_get(struct pci\_dev \*** *dev***);**

## ARGUMENTS

*dev*

the device being referenced

## DESCRIPTION

Each live reference to a device should be refcounted.

Drivers for PCI devices should normally record such references in their **probe** methods, when they bind to a device, and release them by calling **pci\_dev\_put**, in their **disconnect** methods.

A pointer to the device with the incremented reference counter is returned.

## COPYRIGHT
