Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

IMA_SetSendTargetsDiscovery (3IMA)

Name

IMA_SetSendTargetsDiscovery - Enables or disables SendTargets target discovery for a PHBA, LHBA, network portal, or target.

Synopsis

cc [ flag... ] file... -lima [ library... ]
#include <ima.h>

IMA_STATUS IMA_SetSendTargetsDiscovery(
    /* in */      IMA_OID oid,
    /* in */      IMA_BOOL enableSendTargetsDiscovery
);

Parameters

oid

The object ID of the physical host bus adapter (PHBA), logical host bus adapter (LHBA), network portal, or target whose SendTargets target discovery property is being set.

enableSendTargetsDiscovery

Set to the value, IMA_TRUE if SendTargets target discovery is being enabled for the specified PHBA, LHBA, network portal, or target.

Set to the value, IMA_FALSE if SendTargets target discovery is being disabled.

Description

The IMA_SetSendTargetsDiscovery() API enables or disables SendTargets target discovery for a PHBA, LHBA, network portal, or target.

Return Values

IMA_STATUS_REBOOT_NECESSARY

Returned if a reboot is necessary before this call will take effect

IMA_ERROR_NOT_SUPPORTED

Returned if enabling or disabling SendTargets target discovery is not supported by the specified PHBA, LHBA, network portal, or target

IMA_ERROR_INVALID_PARAMETER

Returned if the enableSendTargetsDiscovery argument has a value other than the value, IMA_TRUE and the value, IMA_FALSE

IMA_ERROR_INVALID_OBJECT_TYPE

Returned if the oid argument does not specify a valid object type

IMA_ERROR_INCORRECT_OBJECT_TYPE

Returned if the oid argument does not specify a PHBA, LHBA, network portal, or target object

IMA_ERROR_OBJECT_NOT_FOUND

Returned if the oid argument does not specify a PHBA, LHBA, network portal, or target known to the system

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/storage/snia-ima
Interface Stability
Volatile
MT-Level
Safe

See Also

libima(3LIB), attributes(7), IMA_GetDiscoveryProperties(3IMA), IMA_SetIsnsDiscovery(3IMA), IMA_SetSlpDiscovery(3IMA)