ReactOS 0.4.17-dev-1321-g5c122a9
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  )

IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION; the idle machine owns the IRP afterwards.

Records hub over current in the hub hardware key, once per devnode.

First selective suspend of the device; the registry write runs in a work item.

"USB device not recognized" popup for a port.

A hub was attached beyond the allowed tier depth.

The selected configuration draws more power than the port can give.

The controller ran out of bandwidth for the device; fired by the out of bandwidth timer.

Priority 1 to 3, forwarded to the HCD's EvtEndpointSetCharacteristic.

Tells apart devices that claim the same VID, PID and serial number.

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().