man pages section 3: Extended Library Functions, Volume 4

Exit Print View

Updated: July 2014
 
 

stmfValidateView(3STMF)

Name

stmfValidateView - remove a target port from an target port group

Synopsis

cc [ flag... ] file... lstmf [ library... ]
#include <libstmf.h>

int stmfValidateView(stmfViewEntry *view);

Parameters

view

The view entry to validate or get the logical number.

Description

The stmfValidateView() function validates the logical unit number. This is done by setting view->luNbrValid to B_TRUE and setting view->luNbr to the logical unit number. A valid logical unit number is in the range of 0-16383.

The stmfValidateView() function finds the next available logical unit numbere by setting view->luNbrValid to B_FALSE. On success, the available logical unit number is returned in view-> luNbr. A logical unit number is considered to be available if it is not currently consumed by an existing view entry where the target group and host group matches the view entry passed into this function. Until the logical unit number is no longer available, any calls to this function will get the same logical unit number in view->luNbr.

Return Values

The following values are returned:

STMF_ERROR_LUN_IN_USE

The specified logical unit number is already in use for this logical unit.

STMF_STATUS_SUCCESS

The API call was successful.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Safe

See also

libstmf(3LIB), stmfAddViewEntry(3STMF), attributes(5)