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

# virt\_to\_phys(9)

map virtual addresses to physical

## NAME

virt\_to\_phys - map virtual addresses to physical

## SYNOPSIS

**phys\_addr\_t virt\_to\_phys(volatile void \*** *address***);**

## ARGUMENTS

*address*

address to remap

## DESCRIPTION

The returned physical address is the physical (CPU) mapping for the memory address given. It is only valid to use this function on addresses directly mapped or allocated via kmalloc.

This function does not give bus mappings for DMA transfers. In almost all conceivable cases a device driver should not be using this function

## AUTHORS

**Matthew Wilcox** \<matthew@wil.cx\>

Author.

**Alan Cox** \<alan@lxorguk.ukuu.org.uk\>

Author.

## COPYRIGHT
