---
name: "pci_enable_device"
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_enable_device"
---

# pci\_enable\_device(9)

Initialize device before it's used by a driver.

## NAME

pci\_enable\_device - Initialize device before it's used by a driver.

## SYNOPSIS

**int pci\_enable\_device(struct pci\_dev \*** *dev***);**

## ARGUMENTS

*dev*

PCI device to be initialized

## DESCRIPTION

Initialize device before it's used by a driver. Ask low-level code to enable I/O and memory. Wake up the device if it was suspended. Beware, this function can fail.

Note we don't actually enable the device many times if we call this function repeatedly (we just increment the count).

## COPYRIGHT
