ExFreeToZone

PVOID
    ExFreeToZone(

        PZONE_HEADER  Zone,
        PVOID  Block
        );

ExFreeToZone puts a given block of storage back in the free list for a given zone.

Parameters

Zone
Points to the zone header that controls the storage where the entry is to be released.
Block
Points to the block of storage to be freed.

Return Value

ExFreeToZone returns a pointer to the previous block of storage that was at the head of the free list. NULL implies that the zone went from no available free blocks to at least one free block.

Comments

Callers of ExFreeToZone must be running at IRQL <= DISPATCH_LEVEL.

This routine is a reciprocal to ExAllocateFromZone.

See Also

ExAllocateFromZone, ExInterlockedFreeToZone