NDIS_BUFFER_LINKAGE

PVOID
NDIS_BUFFER_LINKAGE(

IN PNDIS_BUFFER Buffer
);

NDIS_BUFFER_LINKAGE returns a pointer to a linked buffer, given a pointer to a buffer descriptor.

Parameters

Buffer

Points to a buffer descriptor. This buffer descriptor must not be chained to a packet descriptor.

Return Value

NDIS_BUFFER_LINKAGE returns a pointer to the structure member containing the linkage, or NULL if it fails.

Comments

This macro allows a driver to queue allocated buffer descriptors without having to supply its own buffer descriptor linkage.

Callers of this macro can be running at any IRQL.

See Also

NdisAllocateBuffer