ReactOS 0.4.15-dev-7788-g1ad9096
wdfdpc.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_DPC_CONFIG
 

Macros

#define WDF_EXTERN_C
 
#define WDF_EXTERN_C_START
 
#define WDF_EXTERN_C_END
 

Typedefs

typedef EVT_WDF_DPC * PFN_WDF_DPC
 
typedef struct _WDF_DPC_CONFIG WDF_DPC_CONFIG
 
typedef struct _WDF_DPC_CONFIGPWDF_DPC_CONFIG
 
typedef _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFDPCCREATE) (_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
typedef _Must_inspect_result_ _In_ PWDF_DPC_CONFIG Config
 
typedef _Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES Attributes
 
typedef _Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
 
typedef _In_ WDFDPC _In_ BOOLEAN Wait
 

Functions

WDF_EXTERN_C_START typedef _Function_class_ (EVT_WDF_DPC) _IRQL_requires_same_ _IRQL_requires_(DISPATCH_LEVEL) VOID STDCALL EVT_WDF_DPC(_In_ WDFDPC Dpc)
 
FORCEINLINE VOID WDF_DPC_CONFIG_INIT (_Out_ PWDF_DPC_CONFIG Config, _In_ PFN_WDF_DPC EvtDpcFunc)
 
typedef _IRQL_requires_max_ (HIGH_LEVEL) WDFAPI BOOLEAN(STDCALL *PFN_WDFDPCENQUEUE)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
typedef _When_ (Wait==__true, _IRQL_requires_max_(PASSIVE_LEVEL)) _When_(Wait
 

Macro Definition Documentation

◆ WDF_EXTERN_C

#define WDF_EXTERN_C

Definition at line 35 of file wdfdpc.h.

◆ WDF_EXTERN_C_END

#define WDF_EXTERN_C_END

Definition at line 37 of file wdfdpc.h.

◆ WDF_EXTERN_C_START

#define WDF_EXTERN_C_START

Definition at line 36 of file wdfdpc.h.

Typedef Documentation

◆ _IRQL_requires_max_

Definition at line 100 of file wdfdpc.h.

◆ Attributes

◆ Config

Definition at line 107 of file wdfdpc.h.

◆ Dpc

_In_ WDFDPC Dpc
Initial value:
{
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG Config
Definition: wdfdpc.h:107
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES Attributes
Definition: wdfdpc.h:109
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:112
PWDF_DRIVER_GLOBALS WdfDriverGlobals
@ WdfDpcCreateTableIndex
Definition: wdffuncenum.h:136

Definition at line 111 of file wdfdpc.h.

◆ PFN_WDF_DPC

typedef EVT_WDF_DPC* PFN_WDF_DPC

Definition at line 64 of file wdfdpc.h.

◆ PWDF_DPC_CONFIG

◆ Wait

_In_ WDFTIMER _In_ BOOLEAN Wait
Initial value:
{
_In_ WDFDPC _In_ BOOLEAN Wait
Definition: wdfdpc.h:170
@ WdfDpcCancelTableIndex
Definition: wdffuncenum.h:138

Definition at line 169 of file wdfdpc.h.

◆ WDF_DPC_CONFIG

Function Documentation

◆ _Function_class_()

WDF_EXTERN_C_START typedef _Function_class_ ( EVT_WDF_DPC  )

◆ _IRQL_requires_max_()

typedef _IRQL_requires_max_ ( HIGH_LEVEL  )

Definition at line 144 of file wdfdpc.h.

151{
152 return ((PFN_WDFDPCENQUEUE) WdfFunctions[WdfDpcEnqueueTableIndex])(WdfDriverGlobals, Dpc);
153}
@ WdfDpcEnqueueTableIndex
Definition: wdffuncenum.h:137

◆ _When_()

typedef _When_ ( Wait  = = __true,
_IRQL_requires_max_(PASSIVE_LEVEL  
)

◆ WDF_DPC_CONFIG_INIT()

FORCEINLINE VOID WDF_DPC_CONFIG_INIT ( _Out_ PWDF_DPC_CONFIG  Config,
_In_ PFN_WDF_DPC  EvtDpcFunc 
)

Definition at line 83 of file wdfdpc.h.

87{
89 Config->Size = sizeof(WDF_DPC_CONFIG);
90 Config->EvtDpcFunc = EvtDpcFunc;
91
92 Config->AutomaticSerialization = TRUE;
93}
#define TRUE
Definition: types.h:120
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdfchildlist.h:476
struct _WDF_DPC_CONFIG WDF_DPC_CONFIG