Contents

SetTargetProperty

Accessor for setting a property for a specific target.

Declaration

bool SetTargetProperty (
 SCSIDeviceIdentifierdevice, 
 const char *key, 
 OSObject *value );

Parameters

  • device:

    A pointer to a valid IOSCSIParallelInterfaceDevice.

  • key:

    A pointer to a valid OSString object which represents the key. A list of valid keys includes: kIOPropertySASAddressKey, kIOPropertyFibreChannelNodeWorldWideNameKey, kIOPropertyFibreChannelPortWorldWideNameKey, kIOPropertyFibreChannelAddressIdentifierKey, and kIOPropertyFibreChannelALPAKey. NB: These keys and their values are described in <IOKit/storage/IOStorageProtocolCharacteristics.h>

  • value:

    Pointer to an OSObject (one of type OSData, OSString, etc.) which represents the value for the property. The value must be of the proper type and size for the specified key.

Return Value

returns true if identifier was properly set, otherwise false.

See Also

Miscellaneous