ReactOS  0.4.15-dev-1636-gf634010
wdfworkitem.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_WORKITEM_CONFIG
 

Macros

#define WDF_EXTERN_C
 
#define WDF_EXTERN_C_START
 
#define WDF_EXTERN_C_END
 

Typedefs

typedef EVT_WDF_WORKITEM * PFN_WDF_WORKITEM
 
typedef struct _WDF_WORKITEM_CONFIG WDF_WORKITEM_CONFIG
 
typedef struct _WDF_WORKITEM_CONFIGPWDF_WORKITEM_CONFIG
 
typedef _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFWORKITEMCREATE) (_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 
typedef _Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG Config
 
typedef _Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES Attributes
 
typedef _Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWORKITEM * WorkItem
 

Functions

WDF_EXTERN_C_START typedef _Function_class_ (EVT_WDF_WORKITEM) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) VOID STDCALL EVT_WDF_WORKITEM(_In_ WDFWORKITEM WorkItem)
 
FORCEINLINE VOID WDF_WORKITEM_CONFIG_INIT (_Out_ PWDF_WORKITEM_CONFIG Config, _In_ PFN_WDF_WORKITEM EvtWorkItemFunc)
 
_Must_inspect_result_ _IRQL_requires_max_ (DISPATCH_LEVEL) FORCEINLINE NTSTATUS WdfWorkItemCreate(_In_ PWDF_WORKITEM_CONFIG Config
 
typedef _IRQL_requires_max_ (PASSIVE_LEVEL) WDFAPI VOID(STDCALL *PFN_WDFWORKITEMFLUSH)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
 

Macro Definition Documentation

◆ WDF_EXTERN_C

#define WDF_EXTERN_C

Definition at line 35 of file wdfworkitem.h.

◆ WDF_EXTERN_C_END

#define WDF_EXTERN_C_END

Definition at line 37 of file wdfworkitem.h.

◆ WDF_EXTERN_C_START

#define WDF_EXTERN_C_START

Definition at line 36 of file wdfworkitem.h.

Typedef Documentation

◆ _IRQL_requires_max_

typedef _Must_inspect_result_ _IRQL_requires_max_(DISPATCH_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFWORKITEMCREATE)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals

Definition at line 103 of file wdfworkitem.h.

◆ Attributes

◆ Config

◆ PFN_WDF_WORKITEM

typedef EVT_WDF_WORKITEM* PFN_WDF_WORKITEM

Definition at line 64 of file wdfworkitem.h.

◆ PWDF_WORKITEM_CONFIG

◆ WDF_WORKITEM_CONFIG

◆ WorkItem

_In_ WDFWORKITEM WorkItem
Initial value:
{
_Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES Attributes
Definition: wdfworkitem.h:110
#define WdfFunctions
Definition: wdf.h:66
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG Config
Definition: wdfworkitem.h:110
_Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWORKITEM * WorkItem
Definition: wdfworkitem.h:110

Definition at line 110 of file wdfworkitem.h.

Function Documentation

◆ _Function_class_()

WDF_EXTERN_C_START typedef _Function_class_ ( EVT_WDF_WORKITEM  )

◆ _IRQL_requires_max_() [1/2]

_Must_inspect_result_ _IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 147 of file wdfworkitem.h.

154 {
156 }
#define WdfFunctions
Definition: wdf.h:66
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWORKITEM * WorkItem
Definition: wdfworkitem.h:110

◆ _IRQL_requires_max_() [2/2]

typedef _IRQL_requires_max_ ( PASSIVE_LEVEL  )

Definition at line 197 of file wdfworkitem.h.

204 {
206 }
#define WdfFunctions
Definition: wdf.h:66
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWORKITEM * WorkItem
Definition: wdfworkitem.h:110

◆ WDF_WORKITEM_CONFIG_INIT()

FORCEINLINE VOID WDF_WORKITEM_CONFIG_INIT ( _Out_ PWDF_WORKITEM_CONFIG  Config,
_In_ PFN_WDF_WORKITEM  EvtWorkItemFunc 
)

Definition at line 85 of file wdfworkitem.h.

89 {
91  Config->Size = sizeof(WDF_WORKITEM_CONFIG);
92  Config->EvtWorkItemFunc = EvtWorkItemFunc;
93 
94  Config->AutomaticSerialization = TRUE;
95 }
struct _WDF_WORKITEM_CONFIG WDF_WORKITEM_CONFIG
#define TRUE
Definition: types.h:120
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdfchildlist.h:474
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Referenced by DeviceErrorHandlerForMmc(), and DriverEvtDeviceAdd().