1PCI_DEV_GET(9)                Hardware Interfaces               PCI_DEV_GET(9)
2
3
4

NAME

6       pci_dev_get - increments the reference count of the pci device
7       structure
8

SYNOPSIS

10       struct pci_dev * pci_dev_get(struct pci_dev * dev);
11

ARGUMENTS

13       dev
14           the device being referenced
15

DESCRIPTION

17       Each live reference to a device should be refcounted.
18
19       Drivers for PCI devices should normally record such references in their
20       probe methods, when they bind to a device, and release them by calling
21       pci_dev_put, in their disconnect methods.
22
23       A pointer to the device with the incremented reference counter is
24       returned.
25
27Kernel Hackers Manual 3.10         June 2019                    PCI_DEV_GET(9)
Impressum