STMFFREELURESOURCE(3STMF) SCSI Target Mode Framework Library Functions
stmfFreeLuResource - free an allocated logical unit resource
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfFreeLuResource(luResource hdl);
hdl
A logical unit resource previously allocated in a call to
stmfCreateLuResource(3STMF) or stmfGetLuResource(3STMF).
The stmfFreeLuResource() function frees a logical unit resource that
was previously allocated in a call to stmfCreateLuResource(3STMF) or
stmfGetLuResource(3STMF).
The following values are returned:
STMF_STATUS_SUCCESS
The API call was successful.
STMF_ERROR_INVALID_ARG
The hdl argument is not a valid logical
unit resource.
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Committed |
+--------------------+-----------------+
|MT-Level | Safe |
+--------------------+-----------------+
libstmf(3LIB), stmfCreateLuResource(3STMF), stmfGetLuResource(3STMF),
attributes(7)
May 8, 2009 STMFFREELURESOURCE(3STMF)
NAME
stmfFreeLuResource - free an allocated logical unit resource
SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfFreeLuResource(luResource hdl);
PARAMETERS
hdl
A logical unit resource previously allocated in a call to
stmfCreateLuResource(3STMF) or stmfGetLuResource(3STMF).
DESCRIPTION
The stmfFreeLuResource() function frees a logical unit resource that
was previously allocated in a call to stmfCreateLuResource(3STMF) or
stmfGetLuResource(3STMF).
RETURN VALUES
The following values are returned:
STMF_STATUS_SUCCESS
The API call was successful.
STMF_ERROR_INVALID_ARG
The hdl argument is not a valid logical
unit resource.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Committed |
+--------------------+-----------------+
|MT-Level | Safe |
+--------------------+-----------------+
SEE ALSO
libstmf(3LIB), stmfCreateLuResource(3STMF), stmfGetLuResource(3STMF),
attributes(7)
May 8, 2009 STMFFREELURESOURCE(3STMF)