Expand Minimize

WdfDeviceInitSetPowerInrush method

[Applies to KMDF only]

The WdfDeviceInitSetPowerInrush method informs the power manager that the specified device requires an inrush of current when it starts.

Syntax


VOID WdfDeviceInitSetPowerInrush(
  [in]  PWDFDEVICE_INIT DeviceInit
);

Parameters

DeviceInit [in]

A caller-supplied pointer to a WDFDEVICE_INIT structure.

Return value

None

Remarks

To avoid overloading the system's power supply, the system starts devices that require an inrush of current one at a time.

If your driver calls WdfDeviceInitSetPowerInrush, the framework makes it nonpageable during power state transitions and the driver must not call WdfDeviceInitSetPowerPageable.

Your driver must call WdfDeviceInitSetPowerInrush before it calls WdfDeviceCreate. For more information about calling WdfDeviceCreate, see Creating a Framework Device Object.

Calling WdfDeviceInitSetPowerInrush from a filter driver has no effect. For filter drivers, the framework uses the setting that the next-lower driver in the driver stack specifies.

Examples

The following code example informs the power manager that a device requires an inrush of current when it starts.


WdfDeviceInitSetPowerInrush(DeviceInit);

Requirements

Minimum KMDF version

1.0

Header

Wdfdevice.h (include Wdf.h)

Library

Wdf01000.sys (see Framework Library Versioning.)

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

ChildDeviceInitAPI, DeviceInitAPI, DriverCreate, KmdfIrql, KmdfIrql2, PdoDeviceInitAPI

See also

EvtDriverDeviceAdd
WdfDeviceCreate

 

 

Send comments about this topic to Microsoft

顯示:
© 2014 Microsoft