ExFreePool

来源:互联网 发布:淘宝商城棉麻拖鞋 编辑:程序博客网 时间:2024/06/05 03:50

ExFreePool

The ExFreePool routine deallocates a block of pool memory.

VOID
ExFreePool(
IN PVOID P
    );

Parameters
P
Specifies the address of the block of pool memory being deallocated.
Return Value

None

Comments

This routine releases memory allocated by ExAllocatePool, ExAllocatePoolWithTag, ExAllocatePoolWithQuota, or ExAllocatePoolWithQuotaTag. The memory block must not be accessed after it is freed.

Drivers can also use the ExFreePoolWithTag routine to free buffers allocated by ExAllocatePoolWithTag and ExAllocatePoolWithQuotaTag.

Callers of ExFreePool must be running at IRQL <= DISPATCH_LEVEL. A caller at DISPATCH_LEVEL must have specified a NonPagedXxx PoolType when the memory was allocated. Otherwise, the caller must be running at IRQL <= APC_LEVEL.

Requirements

IRQL: <= DISPATCH_LEVEL (see Comments section)

Headers: Declared in Wdm.h. Include Wdm.h, Ntddk.h, or Ntifs.h.

原创粉丝点击