ReactOS  0.4.13-dev-464-g6b95727
pofuncs.h File Reference

Go to the source code of this file.

Macros

#define PoSetDeviceBusy(IdlePointer)   ((void)(*(IdlePointer) = 0))
 

Functions

 $if (_WDMDDK_) _IRQL_requires_max_(DISPATCH_LEVEL) NTKERNELAPI NTSTATUS NTAPI PoCallDriver(_In_ struct _DEVICE_OBJECT *DeviceObject
 
 _IRQL_requires_max_ (APC_LEVEL) NTKERNELAPI PULONG NTAPI PoRegisterDeviceForIdleDetection(_In_ struct _DEVICE_OBJECT *DeviceObject
 
 _IRQL_requires_max_ (DISPATCH_LEVEL) NTKERNELAPI NTSTATUS NTAPI PoRequestPowerIrp(_In_ struct _DEVICE_OBJECT *DeviceObject
 
NTKERNELAPI NTSTATUS NTAPI PoRequestShutdownEvent (OUT PVOID *Event)
 
 $endif (_WDMDDK_) $if(_NTIFS_) _IRQL_requires_max_(APC_LEVEL) NTKERNELAPI NTSTATUS NTAPI PoQueueShutdownWorkItem(_Inout_ __drv_aliasesMem PWORK_QUEUE_ITEM WorkItem)
 
 $endif (_NTIFS_) $if(_WDMDDK_) _IRQL_requires_max_(DISPATCH_LEVEL) NTKERNELAPI VOID NTAPI PoSetSystemWake(_Inout_ struct _IRP *Irp)
 
NTKERNELAPI VOID NTAPI PoSetDeviceBusyEx (_Inout_ PULONG IdlePointer)
 
NTKERNELAPI VOID NTAPI PoStartDeviceBusy (_Inout_ PULONG IdlePointer)
 
NTKERNELAPI VOID NTAPI PoEndDeviceBusy (_Inout_ PULONG IdlePointer)
 

Variables

_Inout_ __drv_aliasesMem struct _IRP * Irp
 
_In_ ULONG ConservationIdleTime
 
_In_ ULONG _In_ ULONG PerformanceIdleTime
 
_In_ ULONG _In_ ULONG _In_ DEVICE_POWER_STATE State
 
_In_ EXECUTION_STATE Flags
 
_In_ UCHAR MinorFunction
 
_In_ UCHAR _In_ POWER_STATE PowerState
 
_In_ UCHAR _In_ POWER_STATE _In_opt_ PREQUEST_POWER_COMPLETE CompletionFunction
 
_In_ UCHAR _In_ POWER_STATE _In_opt_ PREQUEST_POWER_COMPLETE _In_opt_ __drv_aliasesMem PVOID Context
 
_In_ POWER_STATE_TYPE Type
 
_In_ LPCGUID SettingGuid
 
_In_ LPCGUID _In_ PPOWER_SETTING_CALLBACK Callback
 
_In_ LPCGUID _In_ PPOWER_SETTING_CALLBACK _In_opt_ PVOID _Outptr_opt_ PVOIDHandle
 
_Out_ PULONG SecondsRemaining
 
_In_ PDEVICE_OBJECT DeviceObject
 

Macro Definition Documentation

◆ PoSetDeviceBusy

#define PoSetDeviceBusy (   IdlePointer)    ((void)(*(IdlePointer) = 0))

Function Documentation

◆ $endif() [1/2]

$endif ( _WDMDDK_  )

Definition at line 202 of file ke.h.

226 {
227  ULONGLONG Low;
228  LONGLONG High;
229 } NEON128, *PNEON128;
Definition: strmini.h:380
int64_t LONGLONG
Definition: typedefs.h:66
uint64_t ULONGLONG
Definition: typedefs.h:65
Definition: strmini.h:378
NEON128
Definition: ke.h:229
* PNEON128
Definition: ke.h:229

◆ $endif() [2/2]

$endif ( _NTIFS_  )

Definition at line 2594 of file iofuncs.h.

2620 {
2621  ASSERT(Irp->CurrentLocation <= Irp->StackCount);
2622  Irp->CurrentLocation++;
2623 #ifdef NONAMELESSUNION
2624  Irp->Tail.Overlay.s.u.CurrentStackLocation++;
2625 #else
2626  Irp->Tail.Overlay.CurrentStackLocation++;
2627 #endif
2628 }
_In_ PIRP Irp
Definition: csq.h:116
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)

◆ $if()

$if ( _WDMDDK_  )

Kernel definitions for AMD64

Kernel definitions for ARM

Definition at line 1 of file ke.h.

31 {
32  ULONG Dummy;
struct _KFLOATING_SAVE KFLOATING_SAVE
struct _KFLOATING_SAVE * PKFLOATING_SAVE
unsigned int ULONG
Definition: retypes.h:1

◆ _IRQL_requires_max_() [1/2]

_IRQL_requires_max_ ( APC_LEVEL  )

◆ _IRQL_requires_max_() [2/2]

_IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 30 of file rmap.c.

36 {
38 }
#define TAG_RMAP
Definition: tag.h:133
#define P(row, col)
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099

◆ PoEndDeviceBusy()

NTKERNELAPI VOID NTAPI PoEndDeviceBusy ( _Inout_ PULONG  IdlePointer)

◆ PoRequestShutdownEvent()

NTKERNELAPI NTSTATUS NTAPI PoRequestShutdownEvent ( OUT PVOID Event)

Definition at line 396 of file poshtdwn.c.

397 {
399  PAGED_CODE();
400 
401  /* Initialize to NULL */
402  if (Event) *Event = NULL;
403 
404  /* Request a shutdown wait */
406  if (!NT_SUCCESS(Status))
407  {
408  return Status;
409  }
410 
411  /* Return the global shutdown event */
412  if (Event) *Event = &PopShutdownEvent;
413  return STATUS_SUCCESS;
414 }
#define PsGetCurrentThread()
Definition: env_spec_w32.h:81
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI PoRequestShutdownWait(_In_ PETHREAD Thread)
Definition: poshtdwn.c:52
#define PAGED_CODE()
Definition: video.h:57
smooth NULL
Definition: ftsmooth.c:416
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
KEVENT PopShutdownEvent
Definition: poshtdwn.c:21
Status
Definition: gdiplustypes.h:24
return STATUS_SUCCESS
Definition: btrfs.c:2777

Referenced by RawInputThreadMain().

◆ PoSetDeviceBusyEx()

NTKERNELAPI VOID NTAPI PoSetDeviceBusyEx ( _Inout_ PULONG  IdlePointer)

◆ PoStartDeviceBusy()

NTKERNELAPI VOID NTAPI PoStartDeviceBusy ( _Inout_ PULONG  IdlePointer)

Variable Documentation

◆ Callback

Definition at line 120 of file pofuncs.h.

◆ CompletionFunction

Definition at line 42 of file pofuncs.h.

Referenced by PoRequestPowerIrp().

◆ ConservationIdleTime

_In_ ULONG ConservationIdleTime

Definition at line 24 of file pofuncs.h.

◆ Context

◆ DeviceObject

_In_ PDEVICE_OBJECT DeviceObject

Definition at line 193 of file pofuncs.h.

◆ Flags

Definition at line 34 of file pofuncs.h.

◆ Handle

◆ Irp

◆ MinorFunction

◆ PerformanceIdleTime

_In_ ULONG _In_ ULONG PerformanceIdleTime

Definition at line 24 of file pofuncs.h.

◆ PowerState

◆ SecondsRemaining

_Out_ PULONG SecondsRemaining

Definition at line 162 of file pofuncs.h.

◆ SettingGuid

_In_ LPCGUID SettingGuid

Definition at line 120 of file pofuncs.h.

◆ State

Definition at line 24 of file pofuncs.h.

◆ Type

Definition at line 54 of file pofuncs.h.