NdisFreeScatterGatherList - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

VOID NdisFreeScatterGatherList(
  [in] IN NDIS_HANDLE          NdisHandle,
  [in] IN PSCATTER_GATHER_LIST ScatterGatherListBuffer,
  [in] IN BOOLEAN              WriteToDevice
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndisfreescattergatherlist)

NdisFreeScatterGatherList function

Description

The NdisFreeScatterGatherList function frees a scatter/gather list.

Parameters

NdisHandle [in]

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 [in]

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 [in]

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

Remarks

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

See also

NdisBuildScatterGatherList

SCATTER_GATHER_LIST