STMFCREATELURESOURCE(3STMF) SCSI Target Mode Framework Library Functions
stmfCreateLuResource - create new logical unit resource
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfCreateLuResource(uint16_t dType, luResource *hdl);
dType
The device type of the logical unit resource. Only STMF_DISK
is currently supported.
hdl
The logical unit resource to be created.
The stmfCreateLuResource() function creates a resource for setting
properties of a logical unit for purposes of creating a logical unit
in STMF.
The following values are returned:
STMF_ERROR_INVALID_ARG
Either type is unrecognized or hdl was
NULL.
STMF_STATUS_SUCCESS
The API call was successful.
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Committed |
+--------------------+-----------------+
|MT-Level | Safe |
+--------------------+-----------------+
libstmf(3LIB), attributes(7)
May 8, 2009 STMFCREATELURESOURCE(3STMF)
NAME
stmfCreateLuResource - create new logical unit resource
SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfCreateLuResource(uint16_t dType, luResource *hdl);
PARAMETERS
dType
The device type of the logical unit resource. Only STMF_DISK
is currently supported.
hdl
The logical unit resource to be created.
DESCRIPTION
The stmfCreateLuResource() function creates a resource for setting
properties of a logical unit for purposes of creating a logical unit
in STMF.
RETURN VALUES
The following values are returned:
STMF_ERROR_INVALID_ARG
Either type is unrecognized or hdl was
NULL.
STMF_STATUS_SUCCESS
The API call was successful.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Committed |
+--------------------+-----------------+
|MT-Level | Safe |
+--------------------+-----------------+
SEE ALSO
libstmf(3LIB), attributes(7)
May 8, 2009 STMFCREATELURESOURCE(3STMF)