Re: vitrual memory to physical memory



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
.



Relevant Pages

  • Re: STOP 7E on bootup/startup of Windows XP Home
    ... I have a Windows XP Home box that had a STOP 7E message on the screen ... faulty device driver ... possible to get the machine running, even in Safe Mode, then it would ...
    (microsoft.public.windowsxp.general)
  • Windows Device Driver Developer--Chelsio Communications
    ... we have a requirement of Windows Device Driver Developer for Chelsio ... and the drivers for both the TCP Chimney and the RDMA ... and device driver performance tuning are a must. ...
    (microsoft.public.development.device.drivers)
  • Re: [Q] Where to get information on a device for which I write a driver?
    ... and thus the Windows HC driver have issues with this. ... Otherwise, I cannot explain why standard USBHID, USBSTOR and SBP2PORT do ... The Windows XP x64 detects my mouse, but the MS HID device driver ...
    (microsoft.public.development.device.drivers)
  • No Standby Mode
    ... from windows 98 se to windows xp prof.. ... solve for him is that I can?t get his system to go into standby mode. ... The device driver for the "ATI Technologies, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: vitrual memory to physical memory
    ... I'm doing a device driver and our company has developed a Common ... Driver Design. ... We have devloped this CDD for Windows and Linux with great success. ...
    (comp.unix.solaris)