Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

Upcoming OSR Seminars:

Writing WDF Drivers I: Core Concepts, Nashua, NH 15-19 May, 2017
Writing WDF Drivers II: Advanced Implementation Tech., Nashua, NH 23-26 May, 2017
Kernel Debugging and Crash Analysis, Dulles, VA 26-30 June, 2017
Windows Internals & Software Driver Development, Nashua, NH 24-28 July, 2017


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 3  
14 Jul 17 13:19
Sivaller
xxxxxx@gmail.com
Join Date: 13 Jul 2017
Posts To This List: 4
MmGetSystemAddressForMdlSafe more than once

In the same call, can the function be called more than once ? Thank
  Message 2 of 3  
14 Jul 17 14:09
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11533
MmGetSystemAddressForMdlSafe more than once

xxxxx@gmail.com xxxxx@lists.osr.com wrote: > In the same call, can the function be called more than once ? I'm really curious to know what you lead you to think this might be an issue. Also, what would be the definition of "the same call"? Kernel code is essentially one big process. MmGetSystemAddressForMdlSafe is quite simple. In fact, it's a macro; you can go look up exactly what it does. If the MDL has already been mapped, all it does is return a field from the MDL. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 3 of 3  
16 Jul 17 08:42
Peter Viscarola (OSR)
xxxxxx@osr.com
Join Date:
Posts To This List: 5906
List Moderator
MmGetSystemAddressForMdlSafe more than once

>In the same call, can the function be called more than once ? To answer the specific question: Yes. It is specifically designed to be both safe and efficient when called multiple times. Those multiple times are usually once each by multiple drivers in a branch of the device tree. But, in the same driver or the same function will also be fine. Aside from that, what Mr. Roberts said. Peter OSR @OSRDrivers
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 16:46.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license