Partager via


NDIS_BUFFER_LINKAGE (Compact 2013)

3/26/2014

This macro returns a pointer to a linked buffer as long as it has a pointer to a buffer descriptor.

Syntax

PVOID NDIS_BUFFER_LINKAGE(
  PNDIS_BUFFER Buffer
);

Parameters

  • Buffer
    Pointer to a buffer descriptor, which must not be chained to a packet descriptor

Return Value

The return value is a pointer to the structure member containing the linkage or NULL if the operation fails.

Remarks

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

The NDIS_BUFFER_LINKAGE macro is defined as follows.

#define NDIS_BUFFER_LINKAGE(Buffer) ((Buffer)->Next)

Requirements

Header

ndis.h

See Also

Reference

NDIS 5.x Legacy Network Driver Macros
NDIS_BUFFER
NdisAllocateBuffer
NdisFreeBuffer
NDIS 5.x Legacy Reference