svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
IMA_AddDiscoveryAddress(3ima)
iSCSI Management API IMA_AddDiscoveryAddress(3IMA)
NAME
IMA_AddDiscoveryAddress - Adds DiscoveryAddress
SYNOPSIS
cc [ flag... ] file... -lima [ library... ]
#include <ima.h>
IMA_STATUS IMA_AddDiscoveryAddress(
/* in */ IMA_OID oid,
/* in */ const IMA_TARGET_ADDRESS discoveryAddress,
/* out */ IMA_OID *pDiscoveryAddressOid
);
PARAMETERS
oid The object ID of the physical network port
(PNP), or logical host bus adapter (LHBA)
object to which the discovery address is being
added.
discoveryAddress The target address of the target to add to the
specified PNP objects, or the list of LHBA dis‐
covery addresses that are to be used in a send
targets discovery session.
pDiscoveryAddressOid Either the pointer to an IMA_OID structure
allocated by the caller, or NULL. If this argu‐
ment is not NULL, then on successful return,
this argument contains the object ID of the
discovery address added by the IMA_AddDiscov‐
eryAddress() API.
DESCRIPTION
The IMA_AddDiscoveryAddress() API adds a discovery address to be used
for send targets discovery by the specified PNP or LHBA object.
RETURN VALUES
IMA_STATUS_REBOOT_NECESSARY
Returned if a reboot is necessary before the discovery address is
used by the PNP or LHBA in a send targets discovery session.
IMA_ERROR_NOT_SUPPORTED
Returned if send targets discovery is not supported by the speci‐
fied PNP or LHBA.
IMA_ERROR_INVALID_PARAMETER
o Returned if discoveryAddress is NULL, or specifies a
memory area from which data cannot be read.
o Returned if discoveryAddress specifies an empty struc‐
ture.
o Returned if the pDiscoveryAddressOid argument is not
NULL, and specifies a memory area to which data cannot
be written.
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 PNP or LHBA object.
IMA_ERROR_OBJECT_NOT_FOUND
Returned if the oid argument does not specify a PNP or LHBA known
to the system.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Availabilitysystem/library/storage/snia-ima _ Interface
StabilityVolatile _ MT-LevelSafe
SEE ALSO
libima(3LIB), attributes(7), IMA_RemoveDiscoveryAddress(3IMA), IMA_Get‐
DiscoveryAddressProperties(3IMA), IMA_RegisterForObjectVisibility‐
Changes(3IMA), IMA_GetDiscoveryProperties(3IMA)
Oracle Solaris 11.4 20 July 2016
IMA_AddDiscoveryAddress(3IMA)