Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

IMA_RemoveStaticDiscoveryTarget (3IMA)

Name

IMA_RemoveStaticDiscoveryTarget - Removes a target statically discovered by a PNP or LHBA

Synopsis

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

IMA_STATUS IMA_RemoveStaticDiscoveryTarget(
      /* in */     IMA_OID staticDiscoveryTargetOid
);

Parameters

staticDiscoveryTargetOid

The object ID of the static discovery target that is to no longer be discovered.

Description

The IMA_RemoveStaticDiscoveryTarget() API removes a target statically discovered by a physical network port (PNP) or logical host bus adapter (LHBA) .

Return Values

IMA_STATUS_REBOOT_NECESSARY

Returned if a reboot is necessary before the specified static discovery target is no longer discovered

IMA_ERROR_INVALID_OBJECT_TYPE

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

IMA_ERROR_INCORRECT_OBJECT_TYPE

Returned if the staticDiscoveryTargetOid argument does not specify a static discovery target object

IMA_ERROR_OBJECT_NOT_FOUND

Returned if the staticDiscoveryTargetOid argument does not specify a static discovery target known to the system

IMA_ERROR_LU_EXPOSED

Returned if the staticDiscoveryTargetOid argument specifies an iSCSI target that currently has a logical unit (LU) exposed to the operating 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_AddStaticDiscoveryTarget(3IMA), IMA_GetStaticDiscoveryTargetProperties(3IMA), IMA_GetDiscoveryProperties(3IMA), IMA_SetStaticDiscovery(3IMA)