NET_BUFFER_CURRENT_MDL - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// nblaccessors.h

#define NET_BUFFER_CURRENT_MDL(_NB) ((_NB)->CurrentMdl)

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-nblaccessors-net_buffer_current_mdl)

NET_BUFFER_CURRENT_MDL macro

Description

NET_BUFFER_CURRENT_MDL is a macro that NDIS drivers use to get the CurrentMdl member of a NET_BUFFER_DATA structure in a NET_BUFFER structure.

Syntax

#define NET_BUFFER_CURRENT_MDL(_NB) ((_NB)->CurrentMdl)

Parameters

_NB

A pointer to a NET_BUFFER structure.

Return value

NET_BUFFER_CURRENT_MDL returns the value of the CurrentMdl member of the indicated NET_BUFFER structure.

Remarks

The return value is a pointer to the first MDL that the current driver is using. This pointer provides an optimization that improves performance by skipping over any MDLs that the current driver is not using.

See also

NET_BUFFER

NET_BUFFER_DATA