StorPortNotification (NotificationType = WMIReregister, PathId = 0xFF) routine

The StorPortNotification routine notifies the port driver of certain events.

Syntax

VOID StorPortNotification(
  IN SCSI_NOTIFICATION_TYPE NotificationType,
  IN PVOID HwDeviceExtension,
  IN UCHAR PathId
);

Parameters

  • NotificationType
    Specifies the type of notification. A NotificationType of WMIReregister indicates that the miniport driver has changed the data items or the number of instances of a given data block that were previously registered by calling IoWMIRegistrationControl. If WMIReregister is set, StorPortNotification requires at least two additional arguments: (1) the path ID of the target device to reregister that device, or 0xFF to reregister the adapter. If (1) is a path ID, StorPortNotification requires two additional arguments: (2) the target ID, and (3) the logical unit number (LUN) of the target device.

  • HwDeviceExtension
    A pointer to the hardware device extension. This is a per HBA storage area that the port driver allocates and initializes on behalf of the miniport driver. Miniport drivers usually store HBA-specific information in this extension, such as the state of the HBA and the mapped access ranges for the HBA. This area is available to the miniport driver in the DeviceExtension->HwDeviceExtension member of the device object for the HBA immediately after the miniport driver calls StorPortInitialize. The port driver frees this memory when it removes the device.

  • PathId
    Indicates the SCSI port or bus for the request. This parameter is optional.

Return value

None

Remarks

For information about the effects of other notification types, see StorPortNotification.

Requirements

Header

Storport.h (include Storport.h)

See also

StorPortInitialize

StorPortNotification

 

 

Send comments about this topic to Microsoft

Build date: 3/12/2012