Memory management: What every driver writer needs to know

Information about allocating and using memory in kernel-mode drivers for the Windows family of operating systems

File name: mem-mgmt.doc

328 KB

Microsoft Word file

Get Office File Viewers

This paper provides information about allocating and using memory in kernel-mode drivers for the Windows family of operating systems. It describes the types of memory that are available for driver use, the appropriate techniques for allocating and using each type, and the best ways to test for memory-related problems.

Included in this white paper:

  • Virtual and physical memory
  • Virtual address space
  • Physical address space
  • Memory descriptor lists
  • Pool memory
  • Kernel stack
  • Memory allocation techniques
  • Accessing device registers
  • Accessing memory for I/O buffers
  • Mapping device memory and registers into user space
  • Shared memory and synchronization
  • Testing and troubleshooting

 

 

Send comments about this topic to Microsoft