---
name: "pci_request_region"
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_request_region"
---

# pci\_request\_region(9)

Reserve PCI I/O and memory resource

## NAME

pci\_request\_region - Reserve PCI I/O and memory resource

## SYNOPSIS

**int pci\_request\_region(struct pci\_dev \*** *pdev***, int** *bar***, const char \*** *res\_name***);**

## ARGUMENTS

*pdev*

PCI device whose resources are to be reserved

*bar*

BAR to be reserved

*res\_name*

Name to be associated with resource

## DESCRIPTION

Mark the PCI region associated with PCI device *pdev* BAR *bar* as being reserved by owner *res\_name*. Do not access any address inside the PCI regions unless this call returns successfully.

Returns 0 on success, or **EBUSY** on error. A warning message is also printed on failure.

## COPYRIGHT
