NdisFreeMemoryWithTag function

The NdisFreeMemoryWithTag function is deprecated for all NDIS versions. Use NdisAllocateMemoryWithTagPriority instead.

Syntax

void NdisFreeMemoryWithTag(
  IN PVOID VirtualAddress,
  IN ULONG Tag
);

Parameters

VirtualAddress

A pointer to the base virtual address of the allocated memory. This address was returned by the NdisAllocateMemoryWithTag function.

Tag

A string, delimited by single quotation marks, with up to four characters, usually specified in reversed order. The NDIS-supplied default tag for this call is 'maDN', but the caller can override this default by supplying an explicit value.

Return Value

None

Remarks

Because noncached memory and contiguous memory are seldom released until the allocating miniport driver is unloading, a caller of NdisFreeMemoryWithTag usually is running at IRQL = PASSIVE_LEVEL for these types of de-allocations. In any case:

  • When a caller of NdisFreeMemoryWithTag releases contiguous memory, it must be running at IRQL = PASSIVE_LEVEL.
  • When a caller of NdisFreeMemoryWithTag releases noncached memory, it must be running at IRQL < dispatch_level.="">
  • When a caller of NdisFreeMemoryWithTag releases memory that is neither contiguous nor noncached, it must be running at IRQL <= dispatch_level.="">

Requirements

   
Minimum supported client Supported in NDIS 6.20 and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL See Remarks section.

See Also

NdisAllocateMemoryWithTag