共用方式為


ExFreePool 巨集 (ntddk.h)

ExFreePool 例程會解除分配集區內存區塊。

語法

void ExFreePool(
   a
);

參數

a

指定要解除分配集區內存區塊的位址。

傳回值

沒有

言論

此例程會釋放由 ExAllocatePoolExAllocatePoolWithTagExAllocatePoolWithQuotaExAllocatePoolWithQuotaTag所配置的記憶體。 在釋放記憶體區塊之後,不得存取記憶體區塊。

驅動程式也可以使用 ExFreePoolWithTag 例程來釋放 ExAllocatePoolWithTagExAllocatePoolWithQuotaTag所配置的緩衝區。

ExFreePool 的呼叫端必須在 IRQL <= DISPATCH_LEVEL 執行。 在配置記憶體時,位於 DISPATCH_LEVEL的呼叫端必須指定 NonPagedXxxPoolType。 否則,呼叫端必須在 IRQL <= APC_LEVEL執行。

要求

要求 價值
最低支援的用戶端 從 Windows 2000 開始提供。
目標平臺 普遍
標頭 ntddk.h (包括 Wdm.h、Ntddk.h、Ntifs.h)
連結庫 NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= DISPATCH_LEVEL (請參閱一節)
DDI 合規性規則 DoubleExFreePool(storport)

另請參閱

ExAllocatePool

ExAllocatePoolWithQuota

ExAllocatePoolWithQuotaTag

ExAllocatePoolWithTag

ExFreePoolWithTag