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.

Monthly Seminars at OSR Headquarters

East Coast USA
Windows Internals and SW Drivers, Dulles (Sterling) VA, 9 April 2018

Writing WDF Drivers I: Core Concepts, Manchester, NH, 7 May 2018

Kernel Debugging & Crash Analysis for Windows, Manchester, NH, 21 May 2018

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
Join Date: 13 Jul 2017
Posts To This List: 5
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
Join Date: 28 Jan 2005
Posts To This List: 11891
MmGetSystemAddressForMdlSafe more than once 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, Providenza & Boekelheide, Inc.
  Message 3 of 3  
16 Jul 17 08:42
Peter Viscarola (OSR)
Join Date:
Posts To This List: 6126
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 13:25.

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