ReactOS  0.4.15-dev-3173-g40ee59d
FxUsbIdleInfo Struct Reference

#include <fxusbidleinfo.hpp>

Inheritance diagram for FxUsbIdleInfo:
Collaboration diagram for FxUsbIdleInfo:

Public Member Functions

 FxUsbIdleInfo (__in FxPkgPnp *PkgPnp)
 
_Must_inspect_result_ NTSTATUS Initialize (VOID)
 
- Public Member Functions inherited from FxStump
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals)
 
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in POOL_TYPE PoolType)
 
VOID operator delete (__in PVOID pointer)
 
PVOID operator new[] (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals)
 
VOID operator delete[] (__in PVOID pointer)
 

Public Attributes

FxCREventm_IdleCallbackEvent
 
FxAutoIrp m_IdleIrp
 
USB_IDLE_CALLBACK_INFO m_CallbackInfo
 
BOOLEAN m_EventDropped
 

Private Member Functions

 __drv_maxIRQL (PASSIVE_LEVEL) static VOID STDCALL _UsbIdleCallback(__in PVOID Context)
 

Additional Inherited Members

- Protected Member Functions inherited from FxStump
 FxStump (VOID)
 

Detailed Description

Definition at line 7 of file fxusbidleinfo.hpp.

Constructor & Destructor Documentation

◆ FxUsbIdleInfo()

FxUsbIdleInfo::FxUsbIdleInfo ( __in FxPkgPnp PkgPnp)
inline

Definition at line 9 of file fxusbidleinfo.hpp.

12  {
13  m_CallbackInfo.IdleCallback = _UsbIdleCallback;
14  m_CallbackInfo.IdleContext = PkgPnp;
16  }
FxCREvent * m_IdleCallbackEvent
FxAutoIrp m_IdleIrp
BOOLEAN m_EventDropped
#define FALSE
Definition: types.h:117
USB_IDLE_CALLBACK_INFO m_CallbackInfo
#define NULL
Definition: types.h:112

Member Function Documentation

◆ __drv_maxIRQL()

FxUsbIdleInfo::__drv_maxIRQL ( PASSIVE_LEVEL  )
private

◆ Initialize()

_Must_inspect_result_ NTSTATUS FxUsbIdleInfo::Initialize ( VOID  )

Definition at line 141 of file powerpolicystatemachinekm.cpp.

144 {
145  MdIrp pIrp;
146  MxDeviceObject attachedDevObj;
147 
148  attachedDevObj.SetObject(((FxPkgPnp*)m_CallbackInfo.IdleContext)->GetDevice()->GetAttachedDevice());
149 
150  pIrp = FxIrp::AllocateIrp(attachedDevObj.GetStackSize());
151 
152  if (pIrp == NULL) {
154  }
155 
157 
158  return STATUS_SUCCESS;
159 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
CCHAR GetStackSize(VOID)
FxAutoIrp m_IdleIrp
FxIrp * pIrp
USB_IDLE_CALLBACK_INFO m_CallbackInfo
IWudfIrp * MdIrp
Definition: mxum.h:103
static _Must_inspect_result_ MdIrp AllocateIrp(_In_ CCHAR StackSize, _In_opt_ FxDevice *Device=NULL)
Definition: fxirpum.cpp:1089
__inline VOID SetObject(__in_opt MdDeviceObject DeviceObject)
#define NULL
Definition: types.h:112
#define STATUS_SUCCESS
Definition: shellext.h:65
MdIrp SetIrp(MdIrp irp)
Definition: fxirpkm.hpp:71

Referenced by FxPowerPolicyMachine::InitUsbSS().

Member Data Documentation

◆ m_CallbackInfo

USB_IDLE_CALLBACK_INFO FxUsbIdleInfo::m_CallbackInfo

Definition at line 28 of file fxusbidleinfo.hpp.

Referenced by FxUsbIdleInfo(), and Initialize().

◆ m_EventDropped

BOOLEAN FxUsbIdleInfo::m_EventDropped

◆ m_IdleCallbackEvent

FxCREvent* FxUsbIdleInfo::m_IdleCallbackEvent

◆ m_IdleIrp

FxAutoIrp FxUsbIdleInfo::m_IdleIrp

Definition at line 26 of file fxusbidleinfo.hpp.

Referenced by Initialize(), and FxPkgPnp::PowerPolicyCancelUsbSS().


The documentation for this struct was generated from the following files: