ReactOS 0.4.16-dev-289-g096a551
wdfcommonbuffer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WDF_COMMON_BUFFER_CONFIG
 

Macros

#define WDF_EXTERN_C
 
#define WDF_EXTERN_C_START
 
#define WDF_EXTERN_C_END
 

Typedefs

typedef WDF_EXTERN_C_START struct _WDF_COMMON_BUFFER_CONFIG WDF_COMMON_BUFFER_CONFIG
 
typedef WDF_EXTERN_C_START struct _WDF_COMMON_BUFFER_CONFIGPWDF_COMMON_BUFFER_CONFIG
 
typedef _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFCOMMONBUFFERCREATE) (_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
typedef _Must_inspect_result_ _In_ WDFDMAENABLER DmaEnabler
 
typedef _Must_inspect_result_ _In_ WDFDMAENABLER _In_ _When_(Length==0, __drv_reportError(Length cannot be zero)) size_t Length
 
typedef _Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
 
typedef _Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFCOMMONBUFFER * CommonBuffer
 
typedef _Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_ PWDF_COMMON_BUFFER_CONFIG Config
 

Functions

FORCEINLINE VOID WDF_COMMON_BUFFER_CONFIG_INIT (_Out_ PWDF_COMMON_BUFFER_CONFIG Config, _In_ ULONG AlignmentRequirement)
 
typedef _IRQL_requires_max_ (DISPATCH_LEVEL) WDFAPI PVOID(STDCALL *PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 

Macro Definition Documentation

◆ WDF_EXTERN_C

#define WDF_EXTERN_C

Definition at line 40 of file wdfcommonbuffer.h.

◆ WDF_EXTERN_C_END

#define WDF_EXTERN_C_END

Definition at line 42 of file wdfcommonbuffer.h.

◆ WDF_EXTERN_C_START

#define WDF_EXTERN_C_START

Definition at line 41 of file wdfcommonbuffer.h.

Typedef Documentation

◆ _IRQL_requires_max_

typedef _Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFCOMMONBUFFERCREATEWITHCONFIG)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals

Definition at line 85 of file wdfcommonbuffer.h.

◆ _When_

typedef _Must_inspect_result_ _In_ WDFDMAENABLER _In_ _When_(Length==0, __drv_reportError(Length cannot be zero)) size_t Length

Definition at line 94 of file wdfcommonbuffer.h.

◆ Attributes

◆ CommonBuffer

_In_ WDFCOMMONBUFFER CommonBuffer
Initial value:
{
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Must_inspect_result_ _In_ WDFDMAENABLER DmaEnabler
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFCOMMONBUFFER * CommonBuffer
PWDF_DRIVER_GLOBALS WdfDriverGlobals
@ WdfCommonBufferCreateTableIndex
Definition: wdffuncenum.h:46

Definition at line 99 of file wdfcommonbuffer.h.

◆ Config

◆ DmaEnabler

Initial value:

Definition at line 92 of file wdfcommonbuffer.h.

◆ PWDF_COMMON_BUFFER_CONFIG

◆ WDF_COMMON_BUFFER_CONFIG

Function Documentation

◆ _IRQL_requires_max_()

typedef _IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 180 of file wdfcommonbuffer.h.

187{
188 return ((PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS) WdfFunctions[WdfCommonBufferGetAlignedVirtualAddressTableIndex])(WdfDriverGlobals, CommonBuffer);
189}
@ WdfCommonBufferGetAlignedVirtualAddressTableIndex
Definition: wdffuncenum.h:47

◆ WDF_COMMON_BUFFER_CONFIG_INIT()

FORCEINLINE VOID WDF_COMMON_BUFFER_CONFIG_INIT ( _Out_ PWDF_COMMON_BUFFER_CONFIG  Config,
_In_ ULONG  AlignmentRequirement 
)

Definition at line 69 of file wdfcommonbuffer.h.

73{
75
76 Config->Size = sizeof(WDF_COMMON_BUFFER_CONFIG);
77 Config->AlignmentRequirement = AlignmentRequirement;
78}
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdfchildlist.h:476
WDF_EXTERN_C_START struct _WDF_COMMON_BUFFER_CONFIG WDF_COMMON_BUFFER_CONFIG
_In_ WDFDEVICE _In_ ULONG AlignmentRequirement
Definition: wdfdevice.h:2854