'\" t .\" Title: pci_mmap_resource .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "PCI_MMAP_RESOURCE" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pci_mmap_resource \- map a PCI resource into user memory space .SH "SYNOPSIS" .HP \w'int\ pci_mmap_resource('u .BI "int pci_mmap_resource(struct\ kobject\ *\ " "kobj" ", struct\ bin_attribute\ *\ " "attr" ", struct\ vm_area_struct\ *\ " "vma" ", int\ " "write_combine" ");" .SH "ARGUMENTS" .PP \fIkobj\fR .RS 4 kobject for mapping .RE .PP \fIattr\fR .RS 4 struct bin_attribute for the file being mapped .RE .PP \fIvma\fR .RS 4 struct vm_area_struct passed into the mmap .RE .PP \fIwrite_combine\fR .RS 4 1 for write_combine mapping .RE .SH "DESCRIPTION" .PP Use the regular PCI mapping routines to map a PCI resource into userspace\&. .SH "COPYRIGHT" .br