Condividi tramite


Funzione NdisFreeNetBufferList (ndis/nblapi.h)

Chiamare la funzione di NdisFreeNetBufferList per liberare una struttura NET_BUFFER_LIST precedentemente allocata da un pool di strutture NET_BUFFER_LIST.

Sintassi

NDIS_EXPORTED_ROUTINE VOID NdisFreeNetBufferList(
  [in] NET_BUFFER_LIST *NetBufferList
);

Parametri

[in] NetBufferList

Puntatore a una struttura NET_BUFFER_LIST allocata chiamando il NdisAllocateNetBufferList o funzione NdisAllocateNetBufferAndNetBufferList.

Valore restituito

Nessuno

Osservazioni

Per allocare una struttura NET_BUFFER_LIST da un pool, chiamare il NdisAllocateNetBufferList o funzione NdisAllocateNetBufferAndNetBufferList.

Le strutture NET_BUFFER associate alla struttura NET_BUFFER_LIST non vengono liberate a meno che non siano state preallocate con la struttura NET_BUFFER_LIST. È possibile riutilizzare tutte le strutture NET_BUFFER non preallocate oppure liberare tali strutture separatamente.

Se lo spazio del contesto è stato allocato per una struttura NET_BUFFER_LIST con funzione NdisAllocateNetBufferListContext, è necessario liberare tale spazio di contesto prima di liberare la struttura NET_BUFFER_LIST. Non è necessario tentare di liberare lo spazio di contesto allocato con NdisAllocateNetBufferList o NdisAllocateNetBufferAndNetBufferList specificando i parametri contextSize e ContextBackFill.

Fabbisogno

Requisito Valore
client minimo supportato Supportato in NDIS 6.0 e versioni successive.
piattaforma di destinazione Universale
intestazione ndis/nblapi.h (include ndis.h)
libreria Ndis.lib
IRQL <= DISPATCH_LEVEL
regole di conformità DDI Irql_NetBuffer_Function(ndis), NdisAllocateNetBufferList(ndis), NdisAllocateNetBufferList_InitFail(ndis), NdisAllocateNetBufferList2(ndis), NdisAllocateNetBufferList2_InitFail(ndis)

Vedere anche

NET_BUFFER

NET_BUFFER_LIST

NdisAllocateNetBufferAndNetBufferList

NdisAllocateNetBufferList

NdisAllocateNetBufferListContext