---
name: "vm_iomap_memory"
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/vm_iomap_memory"
---

# vm\_iomap\_memory(9)

remap memory to userspace

## NAME

vm\_iomap\_memory - remap memory to userspace

## SYNOPSIS

**int vm\_iomap\_memory(struct vm\_area\_struct \*** *vma***, phys\_addr\_t** *start***, unsigned long** *len***);**

## ARGUMENTS

*vma*

user vma to map to

*start*

start of area

*len*

size of area

## DESCRIPTION

This is a simplified **io\_remap\_pfn\_range** for common driver use. The driver just needs to give us the physical memory range to be mapped, we'll figure out the rest from the vma information.

NOTE! Some drivers might want to tweak vma-\>vm\_page\_prot first to get whatever write-combining details or similar.

## COPYRIGHT
