Hardware Dev Center

NET_BUFFER_CURRENT_MDL macro

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


PMDL NET_BUFFER_CURRENT_MDL(
   PNET_BUFFER _NB
);

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.

Requirements

Target platform

Desktop

Version

Supported in NDIS 6.0 and later.

Header

Ndis.h (include Ndis.h)

See also

NET_BUFFER
NET_BUFFER_DATA

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft