NdisFreeSharedMemory

VOID
    NdisFreeSharedMemory(
        IN NDIS_HANDLE  NdisAdapterHandle,
        IN ULONG  Length,
        IN BOOLEAN  Cached,
        IN PVOID  VirtualAddress,
        IN NDIS_PHYSICAL_ADDRESS  PhysicalAddress
        );

NdisFreeSharedMemory is called by the NIC driver to free memory obtained with NdisAllocateSharedMemory.

Parameters

NdisAdapterHandle
Specifies the handle that the NDIS interface library associates with the network interface card.
Length
Specifies the size, in bytes, of the memory.
Cached
Specifies TRUE if the driver is freeing cached memory.
VirtualAddress
Points to the virtual address of the memory.
PhysicalAddress
Specifies the physical address of the memory.

Comments

Drivers usually call NdisFreeSharedMemory when they are unloading.

Callers of NdisFreeSharedMemory run at IRQL PASSIVE_LEVEL.

See Also

MacUnload, NdisAllocateSharedMemory