Expand Minimize

ExFreePoolWithTag routine

The ExFreePoolWithTag routine deallocates a block of pool memory allocated with the specified tag.

Syntax


VOID ExFreePoolWithTag(
  _In_ PVOID P,
  _In_ ULONG Tag
);

Parameters

P [in]

Specifies the beginning address of a block of pool memory allocated by either ExAllocatePoolWithTag or ExAllocatePoolWithQuotaTag.

Tag [in]

Specifies the tag value passed to ExAllocatePoolWithTag or ExAllocatePoolWithQuotaTag when the block of memory was originally allocated.

Return value

None

Remarks

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

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= DISPATCH_LEVEL (see Remarks section)

DDI compliance rules

IrqlExFree1, IrqlExFree2, IrqlExFree3

See also

ExAllocatePoolWithTag
ExAllocatePoolWithQuotaTag
ExFreePool

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft