Go to main content

man pages section 3: Extended Library Functions, Volume 4

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

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)