ReactOS 0.4.16-dev-297-gc569aee
|
#include <win32k.h>
Go to the source code of this file.
Functions | |
DBG_DEFAULT_CHANNEL (UserPowerManager) | |
static VOID | IntHandlePowerEventWorker (_In_ PWIN32_POWEREVENT_PARAMETERS pParameters) |
Handles a power event as a result from an incoming power callout from the kernel power manager. | |
static NTSTATUS | IntValidateWin32PowerParams (_In_ PWIN32_POWEREVENT_PARAMETERS pParameters) |
Validates the power event parameters that come from a power callout from the kernel power manager. | |
static PWIN32POWERCALLOUT | IntGetNextPowerCallout (_In_ PWIN32POWERCALLOUT pPowerCallout) |
Gets the next pending power callout from the global queue list and returns it to the caller. Note that the returned power callout is delisted from the list. | |
static VOID | IntDeployPowerCallout (VOID) |
Deploys all pending power callouts to appropriate power callout workers. | |
static VOID | IntEnlistPowerCallout (_In_ PWIN32POWERCALLOUT pPowerCallout) |
Enlists a newly allocated power callout into the queue list for later processing. | |
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. | |
Variables | |
LIST_ENTRY | gPowerCalloutsQueueList |
PFAST_MUTEX | gpPowerCalloutMutexLock |
PKEVENT | gpPowerRequestCalloutEvent |
PKTHREAD | gpPowerCalloutMutexOwnerThread |
DBG_DEFAULT_CHANNEL | ( | UserPowerManager | ) |
Deploys all pending power callouts to appropriate power callout workers.
Definition at line 160 of file power.c.
Referenced by IntEnlistPowerCallout().
|
static |
Enlists a newly allocated power callout into the queue list for later processing.
[in] | pPowerCallout | A pointer to a power callout that is to be inserted into the queue list. |
Definition at line 212 of file power.c.
Referenced by IntHandlePowerEvent().
|
static |
Gets the next pending power callout from the global queue list and returns it to the caller. Note that the returned power callout is delisted from the list.
[in] | pPowerCallout | A pointer to a power callout entry that was previously returned by the same function. If this parameter is set to NULL the function will return the first callout entry from the list. Otherwise the function will return the next callout entry of the current power callout. |
Definition at line 121 of file power.c.
Referenced by IntDeployPowerCallout(), and IntWin32PowerManagementCleanup().
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().
|
static |
Handles a power event as a result from an incoming power callout from the kernel power manager.
[in] | pParameters | A pointer to the power event parameters containing the power event type and sub-code serving as additional datum for that power event type. |
Definition at line 34 of file power.c.
Referenced by IntDeployPowerCallout().
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().
|
static |
Validates the power event parameters that come from a power callout from the kernel power manager.
[in] | pParameters | A pointer to the power event parameters containing the power event type of which is to be validated against valid power events. |
Definition at line 82 of file power.c.
Referenced by IntHandlePowerEvent().
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_().
LIST_ENTRY gPowerCalloutsQueueList |
Definition at line 15 of file power.c.
Referenced by IntEnlistPowerCallout(), IntGetNextPowerCallout(), and IntInitWin32PowerManagement().
PFAST_MUTEX gpPowerCalloutMutexLock |
Definition at line 16 of file power.c.
Referenced by IntAcquirePowerCalloutLock(), IntInitWin32PowerManagement(), IntReleasePowerCalloutLock(), and IntWin32PowerManagementCleanup().
PKTHREAD gpPowerCalloutMutexOwnerThread |
Definition at line 18 of file power.c.
Referenced by IntAcquirePowerCalloutLock(), IntInitWin32PowerManagement(), and IntReleasePowerCalloutLock().
PKEVENT gpPowerRequestCalloutEvent |
Definition at line 17 of file power.c.
Referenced by IntEnlistPowerCallout(), IntInitWin32PowerManagement(), and IntWin32PowerManagementCleanup().