[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Virt To Phys
Aamer Jaleel <ajaleel@wam.umd.edu> writes:
> I'm using a kernel version 2.4.19...
>
> Functions like copy to user, copy from user, clear user, etc, all use a
> user space virtual address... can somebody let me know how to convert a
> user space virtual address to a physical address? I wish to convert a
> user space virtual address to a physical address... any help would be
> greatly apprecaited...
I don't know if this is the best way, but check out the follow_page
function in mm/memory.c.
--
--Ed L Cashin | PGP public key:
ecashin@uga.edu | http://noserose.net/e/pgp/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/