Kernel Memory Management

Compile Time directives:

#progma alloc_text(PAGE, AddDevice)
#progma data_seg(“PAGEDATA”)
#progma code_seg(“PAGE”) … #progma code_seg()

Runtime control of pageability

MmLockPagableCodeSection
MmLockPagableDataSection
MmLockPagableSectionByHandle
MmPageEntireDriver
MmResetDriverPaging
MmUnlockPagableImageSection

Heap

ExAllocatePoolWithTag(type, nBytes, tag)
ExFreePool((PVOID) p)

This entry was posted in Windows Kernel. Bookmark the permalink.