NET_BUFFER_CURRENT_MDL macro (ndis/nblaccessors.h)
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Supported in NDIS 6.0 and later. |
Target Platform | Universal |
Header | ndis/nblaccessors.h (include ndis.h) |