---
name: "pci_enable_device_bars"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_enable_device_bars"
---

# pci\_enable\_device\_bars(9)

Initialize some of a device for use

## NAME

pci\_enable\_device\_bars - Initialize some of a device for use

## SYNOPSIS

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

## ARGUMENTS

*dev*

PCI device to be initialized

*bars*

bitmask of BAR's that must be configured

## DESCRIPTION

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

## COPYRIGHT
