---
name: "pci_mmap_resource"
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_mmap_resource"
---

# pci\_mmap\_resource(9)

map a PCI resource into user memory space

## NAME

pci\_mmap\_resource - map a PCI resource into user memory space

## SYNOPSIS

**int pci\_mmap\_resource(struct kobject \*** *kobj***, struct bin\_attribute \*** *attr***, struct vm\_area\_struct \*** *vma***, int** *write\_combine***);**

## ARGUMENTS

*kobj*

kobject for mapping

*attr*

struct bin\_attribute for the file being mapped

*vma*

struct vm\_area\_struct passed into the mmap

*write\_combine*

1 for write\_combine mapping

## DESCRIPTION

Use the regular PCI mapping routines to map a PCI resource into userspace.

## COPYRIGHT
