SCSI Target Mode Framework Library Functions
stmfValidateView(3STMF)
NAME
stmfValidateView - remove a target port from an target port
groupSYNOPSIS
cc [ flag... ] file... lstmf [ library... ]#include
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 inview->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 functionwill 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 attri-
butes:SunOS 5.11 Last change: 1 Oct 2009 1
SCSI Target Mode Framework Library FunctionsstmfValidateView(3STMF)
______________________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
libstmf(3LIB), stmfAddViewEntry(3STMF), attributes(5)SunOS 5.11 Last change: 1 Oct 2009 2
SCSI Target Mode Framework Library FunctionsstmfValidateView(3STMF)
SunOS 5.11 Last change: 1 Oct 2009 3