Introduction to PSHED Plug-Ins

Platform vendors can supplement the default PSHED functionality by providing PSHED plug-ins that take advantage of platform-specific capabilities. A PSHED plug-in is a special-purpose Windows device driver that implements a callback interface that is called by the PSHED. The purpose of a PSHED plug-in is to augment or override the default behavior of the PSHED provided by Microsoft.

A PSHED plug-in is implemented as a Windows Driver Model (WDM) device driver that is loaded by the Plug and Play (PnP) manager when a specific hardware identifier is enumerated during system startup. The platform vendor specifies the hardware identifier that initiates loading of the PSHED plug-in. This hardware identifier can be in the ACPI namespace or it can be in another device namespace.

PSHED plug-ins do not handle any I/O requests that are initiated by a user-mode application or by a higher level driver. Therefore, a PSHED plug-in is only required to implement the following two driver dispatch routines: DispatchPnP and DispatchPower. PSHED plug-ins do not have to register device interfaces or create symbolic links for their device objects.

A PSHED plug-in participates in one or more of the following functional areas that are associated with the handling of hardware errors:

For each of these functional areas, a PSHED plug-in implements callback functions that are called by the PSHED. A PSHED plug-in specifies the functional areas in which it participates and provides pointers to the associated callback functions when it registers itself with the PSHED. Multiple PSHED plug-ins can be registered with the PSHED at the same time. However, if more than one registered PSHED plug-in specifies that it participates in a particular functional area, only the last one to register itself will actually participate in that functional area.

A PSHED plug-in is intended to be implemented by platform vendors as a software interface to the hardware platform's hardware error reporting and recovery capabilities. A PSHED plug-in can interface with the platform firmware using whatever private interfaces or mechanisms are defined by the platform vendor. This allows the platform vendor to continue using existing firmware for hardware error handling. In time, Microsoft expects that more hardware error reporting and recovery capabilities will be standardized. At that point, the need for PSHED plug-ins for general error handling and reporting will diminish such that PSHED plug-ins will only be required for supporting vendor-specific features that provide additional value beyond the standard hardware error handling functionality.

Send comments about this topic to Microsoft