SCSI Target Mode Framework Library Functions
stmfGetStmfProp(3STMF)
NAME
stmfGetStmfProp - retrieve default stmf properties for luns
and targetsSYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include
int stmfGetStmfProp(uint8_t propType, char *propVal, size_t *propLen);
PARAMETERS
propType a property type value. See DESCRIPTION for valid
values. propVal a property value propLen the length of the specified property value. If propLen was of an insufficient size to the holdthe returned property value, propLen will con-
tain the required size of the buffer andSTMF_ERROR_INVALID_ARG will be returned.
DESCRIPTION
This function gets the default properties for the specifiedproperty type. All property values are expressed in human-
readable form. The propType argument can be one of the fol-
lowing values:STMF_DEFAULT_LU_STATE
Retrieve the current default state for luns. The default value is "online".STMF_DEFAULT_TARGET_PORT_STATE
Retrieve the current default state for target ports. the default value is "online".RETURN VALUES
The following values are returned:STMF_STATUS_SUCCESS The API call was successful.
SunOS 5.11 Last change: 7 Jul 2010 1
SCSI Target Mode Framework Library FunctionsstmfGetStmfProp(3STMF)
STMF_ERROR_INVALID_ARG Either the propType or propVal
argument is invalid.STMF_ERROR_NOT_FOUND The specified propType was not
found in the system.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
libstmf(3LIB), stmfSetStmfProp(3STMF), attributes(5)SunOS 5.11 Last change: 7 Jul 2010 2
SCSI Target Mode Framework Library FunctionsstmfGetStmfProp(3STMF)
SunOS 5.11 Last change: 7 Jul 2010 3