/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_POOL_IMPL_H
#define _SYS_POOL_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/exacct_catalog.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Pools driver ioctl interfaces
*/
#define POOL_STATUS 0
/*
* Pools-related exacct catalog IDs
*/
/*
* Element Types
*/
typedef enum pool_elem_class {
typedef enum pool_resource_elem_class {
PREC_INVALID = 0,
typedef enum pool_component_elem_class {
PCEC_INVALID = 0,
/*
* Constants used by devpool.
*/
typedef struct pool_status {
int ps_io_state;
typedef struct pool_create {
int pc_o_type;
int pc_o_sub_type;
typedef struct pool_destroy {
int pd_o_type;
int pd_o_sub_type;
typedef struct pool_query {
void *pq_io_buf;
} pool_query_t;
#ifdef _SYSCALL32
typedef struct pool_query32 {
#endif /* _SYSCALL32 */
typedef struct pool_assoc {
} pool_assoc_t;
typedef struct pool_dissoc {
#pragma pack(4)
#endif
typedef struct pool_transfer {
#pragma pack()
#endif
typedef struct pool_xtransfer {
#ifdef _SYSCALL32
typedef struct pool_xtransfer32 {
#endif /* _SYSCALL32 */
typedef struct pool_propget {
char *pp_i_buf;
char *pp_o_prop_name;
#ifdef _SYSCALL32
typedef struct pool_propget32 {
#endif /* _SYSCALL32 */
typedef struct pool_propgetall {
char *pp_i_prop_list;
#ifdef _SYSCALL32
typedef struct pool_propgetall32 {
#endif /* _SYSCALL32 */
typedef struct pool_propput {
char *pp_o_buf;
#ifdef _SYSCALL32
typedef struct pool_propput32 {
#endif /* _SYSCALL32 */
typedef struct pool_proprm {
char *pp_o_prop_name;
#ifdef _SYSCALL32
typedef struct pool_proprm32 {
#endif /* _SYSCALL32 */
typedef struct pool_bind {
} pool_bind_t;
typedef struct pool_bindq {
} pool_bindq_t;
/*
* Values for pp_type below
*/
#ifdef _KERNEL
/*
* For special properties
*/
typedef struct pool_property {
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_POOL_IMPL_H */