NdisFreeScatterGatherList function

The NdisFreeScatterGatherList function frees a scatter/gather list.

Syntax

void NdisFreeScatterGatherList(
  IN NDIS_HANDLE          NdisHandle,
  IN PSCATTER_GATHER_LIST ScatterGatherListBuffer,
  IN BOOLEAN              WriteToDevice
);

Parameters

NdisHandle

An NDIS driver or instance handle that was obtained during caller initialization. This should be the same handle that was passed to the NdisBuildScatterGatherList function when the scatter/gather list was created.

ScatterGatherListBuffer

A pointer to a caller-provided SCATTER_GATHER_LIST structure to free. This must be the same buffer that was passed to the NdisBuildScatterGatherList function when the scatter/gather list was allocated.

WriteToDevice

A BOOLEAN value that is set to TRUE if the scatter/gather list was used for writing to the device. Otherwise, it is FALSE.

Return Value

None

Remarks

NDIS drivers call the NdisFreeScatterGatherList function to free a scatter/gather list that was created with the NdisBuildScatterGatherList function.

Requirements

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

See Also

NdisBuildScatterGatherList

SCATTER_GATHER_LIST