stmfValidateView(SCSIFTarget Mode Framework Library FunstmfValidateView(3STMF)NAMEstmfValidateView - 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 avail‐
able 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 ALSOlibstmf(3LIB), stmfAddViewEntry(3STMF), attributes(5)SunOS 5.11 1 Oct 2009 stmfValidateView(3STMF)