diskmon_conf.h revision 24db46411fd54f70c35b94bb952eb7ba040e43b4
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * CDDL HEADER START
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * The contents of this file are subject to the terms of the
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * Common Development and Distribution License (the "License").
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * You may not use this file except in compliance with the License.
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * See the License for the specific language governing permissions
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos * and limitations under the License.
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * When distributing Covered Code, include this CDDL HEADER in each
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * If applicable, add the following below this CDDL HEADER, with the
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * fields enclosed by brackets "[]" replaced with your own identifying
eb080f2584b0dc260834971ea6c528121b250b2fAndi Egloff * information: Portions Copyright [yyyy] [name of copyright owner]
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos * CDDL HEADER END
47196c962e3caf7cdf7ea5d00ccdefc9f208bdceLaszlo Hordos * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
47196c962e3caf7cdf7ea5d00ccdefc9f208bdceLaszlo Hordos * Use is subject to license terms.
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#pragma ident "%Z%%M% %I% %E% SMI"
47196c962e3caf7cdf7ea5d00ccdefc9f208bdceLaszlo Hordos * Configuration File data
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#define MIN(x, y) ((x) < (y) ? (x) : (y))
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#define MAX(x, y) ((x) > (y) ? (x) : (y))
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos/* Property names (and values) for the disk configuration file entity */
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#define DISK_PROP_FRUACTION "fru-update-action"
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#define DISK_PROP_OTEMPACTION "overtemp-action"
47196c962e3caf7cdf7ea5d00ccdefc9f208bdceLaszlo Hordos#define DISK_PROP_STFAILACTION "selftest-fail-action"
47196c962e3caf7cdf7ea5d00ccdefc9f208bdceLaszlo Hordos/* Properties for the "ap" subentity */
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#define DEFAULT_FAULT_POLLING_INTERVAL 3600 /* seconds */
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordostypedef enum {
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordostypedef enum {
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordostypedef struct ind_action {
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordostypedef struct indrule {
} indrule_t;
typedef struct indicator {
char *ind_name;
char *ind_instr_spec;
} indicator_t;
typedef struct diskmon {
} diskmon_t;
typedef struct cfgdata {
} cfgdata_t;
typedef struct namevalpr {
char *name;
char *value;
} namevalpr_t;
char *actionp);
void *arg);
extern int config_init(void);
extern void config_fini(void);
#ifdef __cplusplus