fmd_adm.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 _FMD_ADM_H
#define _FMD_ADM_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Fault Management Daemon Administrative Interfaces
*
* Note: The contents of this file are private to the implementation of the
* Solaris system and FMD subsystem and are subject to change at any time
* without notice. Applications and drivers using these interfaces will fail
* to run on future releases. These interfaces should not be used for any
* purpose until they are publicly documented for use outside of Sun.
*/
#define FMD_ADM_PROGRAM 0 /* connect library to system fmd */
extern void fmd_adm_close(fmd_adm_t *);
extern const char *fmd_adm_errmsg(fmd_adm_t *);
typedef struct fmd_adm_stats {
typedef struct fmd_adm_modinfo {
const char *ami_name; /* string name of module */
const char *ami_desc; /* module description */
const char *ami_vers; /* module version */
typedef int fmd_adm_module_f(const fmd_adm_modinfo_t *, void *);
extern int fmd_adm_module_load(fmd_adm_t *, const char *);
extern int fmd_adm_module_unload(fmd_adm_t *, const char *);
extern int fmd_adm_module_reset(fmd_adm_t *, const char *);
extern int fmd_adm_module_gc(fmd_adm_t *, const char *);
typedef struct fmd_adm_rsrcinfo {
const char *ari_fmri; /* fmri name of resource */
const char *ari_uuid; /* uuid name of resource */
const char *ari_case; /* uuid of case associated w/ state */
typedef int fmd_adm_rsrc_f(const fmd_adm_rsrcinfo_t *, void *);
extern int fmd_adm_rsrc_flush(fmd_adm_t *, const char *);
extern int fmd_adm_rsrc_repair(fmd_adm_t *, const char *);
extern int fmd_adm_case_repair(fmd_adm_t *, const char *);
typedef struct fmd_adm_serdinfo {
const char *asi_name; /* name of serd engine */
typedef int fmd_adm_serd_f(const fmd_adm_serdinfo_t *, void *);
extern int fmd_adm_serd_iter(fmd_adm_t *, const char *,
fmd_adm_serd_f *, void *);
extern int fmd_adm_serd_reset(fmd_adm_t *, const char *, const char *);
extern int fmd_adm_log_rotate(fmd_adm_t *, const char *);
#ifdef __cplusplus
}
#endif
#endif /* _FMD_ADM_H */