[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Physical address of a user virtual address



Mark_H_Johnson@Raytheon.com wrote:

> We can't seem to find any "easy" way (e.g., call a function) that converts
> an address in the virtual address space of an application to the physical
> address. The book "Linux Device Drivers" basically tells us to walk the
> page tables. From that, we think we must create a driver or kernel module
> to get access to the proper variables and functions. That looks like a lot
> of work for something that sounds simple.


User apps are not supposed to be concerned with physical memory, so it doesn't 
surprise me at all that you need to make a driver.  Fortunately, writing a 
driver isn't that difficult.  I'd help you out, if I didn't already have a job 
doing exactly what you're looking for!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/