pool.h revision 0209230bf1261579beab4f55226bb509e6b850cb
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * CDDL HEADER START
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * The contents of this file are subject to the terms of the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * Common Development and Distribution License (the "License").
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * You may not use this file except in compliance with the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * See the License for the specific language governing permissions
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * and limitations under the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * When distributing Covered Code, include this CDDL HEADER in each
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * If applicable, add the following below this CDDL HEADER, with the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * fields enclosed by brackets "[]" replaced with your own identifying
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * information: Portions Copyright [yyyy] [name of copyright owner]
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * CDDL HEADER END
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * Use is subject to license terms.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * The following contents of this file are private to the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * implementation of the Solaris system and are subject to change at
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * any time without notice. Applications using these interfaces may
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * fail to run on future releases.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#pragma ident "%Z%%M% %I% %E% SMI"
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern "C" {
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * Library versioning support (c.f. elf_version(3e)).
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * You can enquire about the version number of the library
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * by passing POOL_VER_NONE. POOL_VER_CURRENT is the current
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys * (most capable) version.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * You can set the version used by the library by passing the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * required version number. If this is not possible, the version
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * returned will be POOL_VER_NONE.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Error codes */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Open Flags */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Allocation policy */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Pools updates */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Data Export Formats */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Property data types */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Validation levels */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys POV_RUNTIME /* Validate instantiation on current machine */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* conf states */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Element data values */
30a5e8fa1253cb33980ee4514743cf683f584b4ewyllys/* Elements */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys * Resource management configuration
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern int pool_error(void);
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern const char *pool_strerror(int);
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern int pool_resource_type_list(const char **, uint_t *);
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern int pool_get_status(int *);
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern int pool_set_status(int);
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys/* Configuration manipulation */
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern pool_conf_state_t pool_conf_status(const pool_conf_t *);
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysextern int pool_conf_open(pool_conf_t *, const char *, int);
pool_value_t **);
pool_value_t **);
pool_value_t **);
const pool_component_t *);
const pool_value_t *);
const pool_resource_t *);
const pool_component_t *);
/* Pool Property Value Creation/Destruction */
extern const char *pool_static_location(void);
extern const char *pool_dynamic_location(void);
#ifdef __cplusplus