ReactOS 0.4.16-dev-321-g63bb46a
po.c File Reference
#include <ntdef.h>
#include <ntifs.h>
Include dependency graph for po.c:

Go to the source code of this file.

Functions

NTKRNLVISTAAPI NTSTATUS NTAPI PoRegisterPowerSettingCallback (_In_opt_ PDEVICE_OBJECT DeviceObject, _In_ LPCGUID SettingGuid, _In_ PPOWER_SETTING_CALLBACK Callback, _In_opt_ PVOID Context, _Outptr_opt_ PVOID *Handle)
 
 _IRQL_requires_max_ (APC_LEVEL)
 Probes and locks virtual pages in memory for the specified process.
 
 _IRQL_requires_max_ (DISPATCH_LEVEL)
 

Function Documentation

◆ _IRQL_requires_max_() [1/2]

_IRQL_requires_max_ ( APC_LEVEL  )

Probes and locks virtual pages in memory for the specified process.

Parameters
[in,out]MemoryDescriptorListMemory Descriptor List (MDL) containing the buffer to be probed and locked.
[in]ProcessThe process for which the buffer should be probed and locked.
[in]AccessModeAccess mode for probing the pages. Can be KernelMode or UserMode.
[in]LockOperationThe type of the probing and locking operation. Can be IoReadAccess, IoWriteAccess or IoModifyAccess.
Returns
Nothing.
See also
MmProbeAndLockPages
Remarks
Must be called at IRQL <= APC_LEVEL

Probes and locks virtual pages in memory for the specified process.

Frees previously reserved amount of memory in system virtual address space.

Parameters
[in]NumberOfBytesSize, in bytes, of memory to reserve.
[in]PoolTagPool Tag identifying the buffer. Usually consists from 4 characters in reversed order.
Returns
A pointer to the 1st memory block of the reserved buffer in case of success, NULL otherwise.
Remarks
Must be called at IRQL <= APC_LEVEL
Parameters
[in]BaseAddressA pointer to the 1st memory block of the reserved buffer.
[in]PoolTagPool Tag identifying the buffer. Usually consists from 4 characters in reversed order.
Returns
Nothing.
See also
MmAllocateMappingAddress
Remarks
Must be called at IRQL <= APC_LEVEL

Definition at line 24 of file po.c.

30{
32}
#define STATUS_NOT_IMPLEMENTED
Definition: d3dkmdt.h:42

◆ _IRQL_requires_max_() [2/2]

_IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 34 of file po.c.

41{
42 return FALSE;
43}
#define FALSE
Definition: types.h:117

◆ PoRegisterPowerSettingCallback()

NTKRNLVISTAAPI NTSTATUS NTAPI PoRegisterPowerSettingCallback ( _In_opt_ PDEVICE_OBJECT  DeviceObject,
_In_ LPCGUID  SettingGuid,
_In_ PPOWER_SETTING_CALLBACK  Callback,
_In_opt_ PVOID  Context,
_Outptr_opt_ PVOID Handle 
)

Definition at line 14 of file po.c.

20{
22}

Referenced by ClasspEnableIdlePower(), and ClasspInitializePolling().