Re: vitrual memory to physical memory
- From: john <jvasquez@xxxxxxxxxxxxxxxx>
- Date: Wed, 23 Aug 2006 11:20:23 -0700
Thanks for the response.
However, I've been there and couldn't fine a function or procedure to
allow me to obtain a physical address from a virtual address.
I'm a newbie to solaris and maybe I didn't see it. Can you point me in
the right direction?
My main background is Windows.
In windows you just simply build a Memory Discriptor List of the
virtual memory and then call IoMapAddress() that returns the physical
address of the virtual address and the number of bytes within the page
pointed to by the virtual address. This is what I'm looking for.
In Linux, it does some prelimary systems calls (get_user_pages()) and
page_address()). The virt_to_phys() is then called to return a
physical address of a virtual address.
Even Lynx has a way of obtaining the physical address using mmchain()
and then calculating the physical address for each page of the virtual
address.
John
On Wed, 23 Aug 2006 09:33:03 -0700, Bill Waddington
<william.waddington@xxxxxxxxxx> wrote:
On Wed, 23 Aug 2006 09:13:49 -0700, john <jvasquez@xxxxxxxxxxxxxxxx>.
wrote:
How would you go about converting a virtual memory to a physical
address.
I'm doing a device driver and our company has developed a Common
Driver Design (CDD). One of the requirements is to convert the user's
virtual address of their buffers to a physical address. The driver
then uses that address to perform DMA operations on a PCI devices.
We have devloped this CDD for Windows and Linux with great success. I
now need to do it on a Solaris 10 OS.
Any ideas?
http://docs.sun.com/app/docs/doc/816-4854
Bill
- Follow-Ups:
- Re: vitrual memory to physical memory
- From: Bill Waddington
- Re: vitrual memory to physical memory
- References:
- vitrual memory to physical memory
- From: john
- Re: vitrual memory to physical memory
- From: Bill Waddington
- vitrual memory to physical memory
- Prev by Date: Re: vitrual memory to physical memory
- Next by Date: Re: how to upgrade from 1/06 to 6/06?
- Previous by thread: Re: vitrual memory to physical memory
- Next by thread: Re: vitrual memory to physical memory
- Index(es):
Relevant Pages
|