zonestat_impl.h revision efd4c9b63ad77503c101fc6c2ed8ba96c9d52964
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/*
*/
#ifndef _ZONESTAT_IMPL_H
#define _ZONESTAT_IMPL_H
#include <zonestat.h>
#include <sys/priv_const.h>
#ifdef __cplusplus
extern "C" {
#endif
#define ZS_VERSION 1
#define ZS_PSET_DEFAULT PS_NONE
#define ZS_PSET_MULTI PS_MYID
#define ZS_PSET_ERROR PS_QUERY
#define ZS_DOOR_PATH "/etc/svc/volatile/zonestat_door"
#define ZSD_CMD_READ 1
#define ZSD_CMD_CONNECT 2
#define ZSD_CMD_NEW_ZONE 3
/* The following read commands are unimplemented */
#define ZSD_CMD_READ_TIME 3
#define ZSD_CMD_READ_SET 4
#define ZSD_CMD_READ_SET_TIME 5
#define ZSD_STATUS_OK 0
#define ZSD_STATUS_VERSION_MISMATCH 1
#define ZSD_STATUS_PERMISSION 2
#define ZSD_STATUS_INTERNAL_ERROR 3
{ \
} \
}
{ \
} \
}
{ \
} \
} \
}
typedef struct zs_system {
} zs_system_t;
struct zs_pset_zone {
};
struct zs_ctl {
int zsctl_door;
};
struct zs_zone {
struct zs_system *zsz_system;
char zsz_name[ZS_ZONENAME_MAX];
char zsz_pool[ZS_POOLNAME_MAX];
char zsz_pset[ZS_PSETNAME_MAX];
};
struct zs_pset {
char zsp_name[ZS_PSETNAME_MAX];
};
struct zs_usage {
};
struct zs_usage_set {
struct zs_usage *zsus_total;
};
struct zs_property {
int zsp_type;
int zsp_id;
union zsp_value_union {
char zsv_string[ZS_PSETNAME_MAX];
double zsv_double;
int zsv_int;
} zsp_v;
};
typedef struct zs_usage_cache {
int zsuc_ref;
#ifdef __cplusplus
}
#endif
#endif /* _ZONESTAT_IMPL_H */