NET_BUFFER_SHARED_MEM_NEXT_SEGMENT macro (ndis/nblaccessors.h)

The NET_BUFFER_SHARED_MEM_NEXT_SEGMENT macro gets the next shared memory segment from a NET_BUFFER_SHARED_MEMORY structure.

Syntax

#define NET_BUFFER_SHARED_MEM_NEXT_SEGMENT(_SHI) ((_SHI)->NextSharedMemorySegment)

Parameters

_SHI

A pointer to a NET_BUFFER_SHARED_MEMORY structure.

Return value

NET_BUFFER_SHARED_MEM_NEXT_SEGMENT returns a pointer to a NET_BUFFER_SHARED_MEMORY structure or returns NULL.

Remarks

An NDIS 6.20 or later driver can use the NET_BUFFER_SHARED_MEM_NEXT_SEGMENT macro to get the next shared memory segment in a linked list of NET_BUFFER_SHARED_MEMORY structures that are associated with a NET_BUFFER structure. NET_BUFFER_SHARED_MEM_NEXT_SEGMENT gets a pointer to the next NET_BUFFER_SHARED_MEMORY structure from the NextSharedMemorySegment member of the NET_BUFFER_SHARED_MEMORY structure. The SharedMemoryInfo member of the NET_BUFFER structure contains the first NET_BUFFER_SHARED_MEMORY structure in the linked list.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.20 and later.
Target Platform Universal
Header ndis/nblaccessors.h (include ndis.h)

See also

NET_BUFFER

NET_BUFFER_SHARED_MEMORY