ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Classes | |
struct | tagWIN32POWERCALLOUT |
Macros | |
#define | ASSERT_POWER_CALLOUT_LOCK_ACQUIRED() ASSERT(gpPowerCalloutMutexOwnerThread == KeGetCurrentThread()) |
Typedefs | |
typedef enum tagPOWER_CALLOUT_TYPE | POWER_CALLOUT_TYPE |
typedef struct tagWIN32POWERCALLOUT | WIN32POWERCALLOUT |
typedef struct tagWIN32POWERCALLOUT * | PWIN32POWERCALLOUT |
Enumerations | |
enum | tagPOWER_CALLOUT_TYPE { POWER_CALLOUT_EVENT = 0 , POWER_CALLOUT_STATE } |
Functions | |
NTSTATUS NTAPI | IntInitWin32PowerManagement (_In_ HANDLE hPowerRequestEvent) |
Initializes the power management side of Win32 kernel-mode subsystem component. This enables communication between the power manager of the NT kernel and Win32k. | |
NTSTATUS NTAPI | IntWin32PowerManagementCleanup (VOID) |
Cleanup procedure that frees all the allocated resources by the power manager. It is triggered during Win32k subsystem unloading. | |
NTSTATUS NTAPI | IntHandlePowerEvent (_In_ PWIN32_POWEREVENT_PARAMETERS pWin32PwrEventParams) |
Handles an incoming power event callout from the NT power manager. | |
NTSTATUS NTAPI | IntHandlePowerState (_In_ PWIN32_POWERSTATE_PARAMETERS pWin32PwrStateParams) |
Handles an incoming power state callout from the NT power manager. | |
FORCEINLINE VOID | IntAcquirePowerCalloutLock (VOID) |
FORCEINLINE VOID | IntReleasePowerCalloutLock (VOID) |
FORCEINLINE BOOL | IntIsThreadWin32Thread (_In_ PETHREAD Thread) |
Variables | |
LIST_ENTRY | gPowerCalloutsQueueList |
PFAST_MUTEX | gpPowerCalloutMutexLock |
PKEVENT | gpPowerRequestCalloutEvent |
PKTHREAD | gpPowerCalloutMutexOwnerThread |
#define ASSERT_POWER_CALLOUT_LOCK_ACQUIRED | ( | ) | ASSERT(gpPowerCalloutMutexOwnerThread == KeGetCurrentThread()) |
typedef struct tagWIN32POWERCALLOUT * PWIN32POWERCALLOUT |
Enumerator | |
---|---|
POWER_CALLOUT_EVENT | |
POWER_CALLOUT_STATE |
Definition at line 13 of file power.h.
FORCEINLINE VOID IntAcquirePowerCalloutLock | ( | VOID | ) |
Definition at line 78 of file power.h.
Referenced by IntDeployPowerCallout(), and IntEnlistPowerCallout().
NTSTATUS NTAPI IntHandlePowerEvent | ( | _In_ PWIN32_POWEREVENT_PARAMETERS | pWin32PwrEventParams | ) |
Handles an incoming power event callout from the NT power manager.
[in] | pWin32PwrEventParams | A pointer to power event parameters that is given by the NT power manager of the kernel. |
Definition at line 362 of file power.c.
Referenced by DriverEntry().
NTSTATUS NTAPI IntHandlePowerState | ( | _In_ PWIN32_POWERSTATE_PARAMETERS | pWin32PwrStateParams | ) |
Handles an incoming power state callout from the NT power manager.
[in] | pWin32PwrStateParams | A pointer to power state parameters that is given by the NT power manager of the kernel. |
Definition at line 419 of file power.c.
Referenced by DriverEntry().
Initializes the power management side of Win32 kernel-mode subsystem component. This enables communication between the power manager of the NT kernel and Win32k.
[in] | hPowerRequestEvent | A handle to the global power request event, provided by the Winsrv module. This allows CSRSS to be notified of power callouts that cannot be handled by Win32k. |
Definition at line 271 of file power.c.
Referenced by NtUserInitialize().
FORCEINLINE BOOL IntIsThreadWin32Thread | ( | _In_ PETHREAD | Thread | ) |
FORCEINLINE VOID IntReleasePowerCalloutLock | ( | VOID | ) |
Definition at line 87 of file power.h.
Referenced by IntDeployPowerCallout(), and IntEnlistPowerCallout().
Cleanup procedure that frees all the allocated resources by the power manager. It is triggered during Win32k subsystem unloading.
Definition at line 315 of file power.c.
Referenced by _Function_class_().
|
extern |
Definition at line 15 of file power.c.
Referenced by IntEnlistPowerCallout(), IntGetNextPowerCallout(), and IntInitWin32PowerManagement().
|
extern |
Definition at line 16 of file power.c.
Referenced by IntAcquirePowerCalloutLock(), IntInitWin32PowerManagement(), IntReleasePowerCalloutLock(), and IntWin32PowerManagementCleanup().
|
extern |
Definition at line 18 of file power.c.
Referenced by IntAcquirePowerCalloutLock(), IntInitWin32PowerManagement(), and IntReleasePowerCalloutLock().
|
extern |
Definition at line 17 of file power.c.
Referenced by IntEnlistPowerCallout(), IntInitWin32PowerManagement(), and IntWin32PowerManagementCleanup().