|Skip Navigation Links|
|Exit Print View|
|man pages section 3: Extended Library Functions, Volume 4 Oracle Solaris 11 Information Library|
- remove a target port from an target port group
cc [ flag... ] file... lstmf [ library... ] #include <libstmf.h> int stmfValidateView(stmfViewEntry *view);
The view entry to validate or get the logical number.
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.
The following values are returned:
The specified logical unit number is already in use for this logical unit.
The API call was successful.
See attributes(5) for descriptions of the following attributes: