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

# phys\_to\_virt(9)

map physical address to virtual

## NAME

phys\_to\_virt - map physical address to virtual

## SYNOPSIS

**void \* phys\_to\_virt(phys\_addr\_t** *address***);**

## ARGUMENTS

*address*

address to remap

## DESCRIPTION

The returned virtual address is a current CPU mapping for the memory address given. It is only valid to use this function on addresses that have a kernel mapping

This function does not handle 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
