Funzione NdisFreeNetBufferList (ndis/nblapi.h)
Chiamare la funzione NdisFreeNetBufferList per liberare una struttura NET_BUFFER_LIST allocata in precedenza da un pool di strutture di 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 NdisAllocateNetBufferList o Funzione NdisAllocateNetBufferAndNetBufferList .
Valore restituito
nessuno
Osservazioni
Per allocare una struttura NET_BUFFER_LIST da un pool, chiamare 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 di NET_BUFFER_LIST con La funzione NdisAllocateNetBufferListContext deve 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 .
Requisiti
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) |