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?

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.

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.