Skip to content
Snippets Groups Projects
Commit 65e43a10 authored by Kumar Gala's avatar Kumar Gala Committed by Wolfgang Denk
Browse files

Introduce virt_to_phys()


virt_to_phys() returns the physical address given a virtual. In most
cases this will be just the input value as the vast majority of
systems run in a 1:1 mode.

However in systems that are not running this way it should report the
physical address or ~0 if no mapping exists for the given virtual
address.

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 45845301
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment