Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category, below.

How to get virtual address for physical address in STOR_SCATTER_GATHER_ELEMENT ?

The problem is from http://www.osronline.com/cf.cfm?PageURL=showlists.cfm?list=NTDEV.

I use windbg to read the physical address in STOR_SCATTER_GATHER_ELEMENT from StorPortGetScatterGatherList. Then use !ptov command to get the page map table. The physical page and it's virtual address can be found in the table. This is the virtual address used in memory copy for the bounce buffer.
My question is :
Is there a way to find this virtual address using WDK APIs?

Comments

  • Tim_RobertsTim_Roberts Posts: 12,566
    xxxxx@gmail.com wrote:
    > I use windbg to read the physical address in STOR_SCATTER_GATHER_ELEMENT from StorPortGetScatterGatherList. Then use !ptov command to get the page map table. The physical page and it's virtual address can be found in the table. This is the virtual address used in memory copy for the bounce buffer.
    > My question is :
    > Is there a way to find this virtual address using WDK APIs?

    No, but even if you did, what good would it do?  The system will copy
    the data to the user buffer, and you certainly DO have that virtual address.
    --
    Tim Roberts, xxxxx@probo.com
    Providenza & Boekelheide, Inc.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • Yes, it will copy data to the user buffer. But it happens in StorportNotification with RequestComplete after I copy the data to that user buffer virtual address .

    > No, but even if you did, what good would it do?? The system will copy
    > the data to the user buffer, and you certainly DO have that virtual address.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!