// spb.h
SPB_TRANSFER_LIST_ENTRY SPB_TRANSFER_LIST_ENTRY_INIT_MDL(
[in] SPB_TRANSFER_DIRECTION Direction,
[in] ULONG DelayInUs,
[in] PMDL Mdl
);
View the official Windows Driver Kit DDI referenceNo description available.
The SPB_TRANSFER_LIST_ENTRY_INIT_MDL function returns an SPB_TRANSFER_LIST_ENTRY structure that is initialized to use an MDL to describe a data buffer.
Direction [in]The direction of the transfer. The function writes this value to the Direction member of the SPB_TRANSFER_LIST_ENTRY structure.
DelayInUs [in]An optional delay in microseconds. The function writes this value to the DelayInUs member of the SPB_TRANSFER_LIST_ENTRY structure.
Mdl [in]A pointer to an MDL that describes a data buffer. The function writes this value to the Buffer.Mdl member of the SPB_TRANSFER_LIST_ENTRY structure. For more information, see the description of the Mdl member in SPB_TRANSFER_BUFFER.
SPB_TRANSFER_LIST_ENTRY_INIT_MDL returns an initialized SPB_TRANSFER_LIST_ENTRY structure.
This initialization function returns an unnamed local variable of type SPB_TRANSFER_LIST_ENTRY. The storage for this variable is allocated in the caller's stack frame and is valid while the stack frame remains in scope.
SPB_TRANSFER_LIST_ENTRY_INIT_MDL sets the Buffer.Format member of the SPB_TRANSFER_LIST_ENTRY structure to SpbTransferBufferFormatMdl. For more information about buffer formats, see SPB_TRANSFER_BUFFER_FORMAT.