WdfDeviceInitSetPowerInrush - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdevice.h

VOID WdfDeviceInitSetPowerInrush(
  [in] PWDFDEVICE_INIT DeviceInit
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-wdfdeviceinitsetpowerinrush)

WdfDeviceInitSetPowerInrush function

Description

[Applies to KMDF only]

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

Parameters

DeviceInit [in]

A caller-supplied pointer to a WDFDEVICE_INIT structure.

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);

See also

EvtDriverDeviceAdd

WdfDeviceCreate