Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fstyp_strerror(3fstyp) [opensolaris man page]

fstyp_strerror(3FSTYP)				 File System Type Identification Library Functions			    fstyp_strerror(3FSTYP)

NAME
fstyp_strerror - get error message string SYNOPSIS
cc [ flag... ] file... -lfstyp -lnvpair [ library... ] #include <libnvpair.h> #include <libfstyp.h> const char *fstyp_strerror(fstyp_handle_t handle, int error); PARAMETERS
handle Opaque handle returned by fstyp_init(3FSTYP). This argument is optional and can be 0. error Error value returned by a libfstyp function. DESCRIPTION
The fstyp_strerror() function maps the error value to an error message string and returns a pointer to that string. The returned string should not be overwritten. The following error values are defined: FSTYP_ERR_NO_MATCH No file system match. FSTYP_ERR_MULT_MATCH Multiple file system matches. FSTYP_ERR_HANDLE Invalid handle. FSTYP_ERR_OFFSET Supplied offset is invalid or unsupported by the module. FSTYP_ERR_NO_PARTITION Specified partition not found. FSTYP_ERR_NOP No such operation. FSTYP_ERR_DEV_OPEN Device cannot be opened. FSTYP_ERR_IO I/O error. FSTYP_ERR_NOMEM Out of memory. FSTYP_ERR_MOD_NOT_FOUND Requested file system module not found. FSTYP_ERR_MOD_DIR_OPEN Directory cannot be opened. FSTYP_ERR_MOD_OPEN Module cannot be opened. FSTYP_ERR_MOD_INVALID Invalid module version. FSTYP_ERR_NAME_TOO_LONG File system name length exceeds system limit. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
fstyp_init(3FSTYP), libfstyp(3LIB), attributes(5) SunOS 5.11 20 Jun 2006 fstyp_strerror(3FSTYP)

Check Out this Related Man Page

rsm_create_localmemory_handle(3RSM)		      Remote Shared Memory Library Functions		       rsm_create_localmemory_handle(3RSM)

NAME
rsm_create_localmemory_handle, rsm_free_localmemory_handle - create or free local memory handle SYNOPSIS
cc [ flag... ] file... -lrsm [ library... ] #include <rsmapi.h> int rsm_create_localmemory_handle(rsmapi_controller_handle_t handle, rsm_localmemory_handle_t *l_handle, caddr_t local_vaddr, size_t length); int rsm_free_localmemory_handle(rsmapi_controller_handle_t handle, rsm_localmemory_handle_t l_handle); DESCRIPTION
The rsm_create_localmemory_handle() and rsm_free_localmemory_handle() functions are supporting functions for rsm_memseg_import_putv(3RSM) and rsm_memseg_import_getv(3RSM). The rsm_create_localmemory_handle() function creates a local memory handle to be used in the I/O vector component of a scatter-gather list of subsequent rsm_memseg_import_putv() and rsm_memseg_import_getv() calls. The handle argument specifies the controller handle obtained from rsm_get_controller(3RSM). The l_handle argument is a pointer to the location for the function to return the local memory handle. The local_vaddr argument specifies the local virtual address; it should be aligned at a page boundary. The length argument specifies the length of memory spanned by the handle. The rsm_free_localmemory_handle() function unlocks the memory range for the local handle specified by l_handle and releases the associated system resources. The handle argument specifies the controller handle. All handles created by a process are freed when the process exits, but the process should call rsm_free_localmemory_handle() as soon as possible to free the system resources. RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, an error value is returned to indicate the error. ERRORS
The rsm_create_localmemory_handle() and rsm_free_localmemory_handle() functions can return the following errors: RSMERR_BAD_CTLR_HNDL Invalid controller handle. RSMERR_BAD_LOCALMEM_HNDL Invalid local memory handle. The rsm_create_localmemory_handle() function can return the following errors: RSMERR_BAD_LENGTH Invalid length. RSMERR_BAD_ADDRESS Invalid address. RSMERR_INSUFFICIENT_MEM Insufficient memory. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
rsm_memseg_import_putv(3RSM), attributes(5) SunOS 5.10 8 Jun 2001 rsm_create_localmemory_handle(3RSM)
Man Page