StorPortSetUnitAttributes - NtDoc

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

ULONG StorPortSetUnitAttributes(
  [in] PVOID                HwDeviceExtension,
  [in] PSTOR_ADDRESS        Address,
  [in] STOR_UNIT_ATTRIBUTES Attributes
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-storport-storportsetunitattributes)

StorPortSetUnitAttributes function

Description

The StorPortSetUnitAttributes routine registers attributes of a storage unit device with the Storport driver.

Parameters

HwDeviceExtension [in]

A pointer to the hardware device extension for the host bus adapter (HBA).

Address [in]

A STOR_ADDRESS structure that holds the storage unit device address. This parameter must not be NULL.

Attributes [in]

A STOR_UNIT_ATTRIBUTES structure with bits set to indicate the attributes supported for the unit device.

Return value

StorPortSetUnitAttributes returns one of the following status codes:

Return code Description
STOR_STATUS_SUCCESS The routine set the unit attributes successfully.
STOR_STATUS_INVALID_PARAMETER One or more parameters are invalid.

An invalid parameter can be any of the following:

Remarks

A miniport driver calls this routine to register the unit attributes with Storport during completion of an SRB containing a SCSIOP_INQUIRY command request. The bits in attributes are set based on the data returned from the adapter for the inquiry command. Storport issues an inquiry for the unit at Address during a bus enumeration.

See also

STOR_ADDRESS

STOR_UNIT_ATTRIBUTES