---
name: "pci_mmap_legacy_mem"
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_legacy_mem"
---

# pci\_mmap\_legacy\_mem(9)

map legacy PCI memory into user memory space

## NAME

pci\_mmap\_legacy\_mem - map legacy PCI memory into user memory space

## SYNOPSIS

**int pci\_mmap\_legacy\_mem(struct file \*** *filp***, struct kobject \*** *kobj***, struct bin\_attribute \*** *attr***, struct vm\_area\_struct \*** *vma***);**

## ARGUMENTS

*filp*

open sysfs file

*kobj*

kobject corresponding to device to be mapped

*attr*

struct bin\_attribute for this file

*vma*

struct vm\_area\_struct passed to mmap

## DESCRIPTION

Uses an arch specific callback, pci\_mmap\_legacy\_mem\_page\_range, to mmap legacy memory space (first meg of bus space) into application virtual memory space.

## COPYRIGHT
