Print this page
10113 fmd_adm_xprt_f should return void


   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 




  27 #ifndef _FMD_ADM_H
  28 #define _FMD_ADM_H
  29 
  30 #pragma ident   "%Z%%M% %I%     %E% SMI"
  31 
  32 #include <fm/fmd_api.h>
  33 
  34 #ifdef  __cplusplus
  35 extern "C" {
  36 #endif
  37 
  38 /*
  39  * Fault Management Daemon Administrative Interfaces
  40  *
  41  * Note: The contents of this file are private to the implementation of the
  42  * Solaris system and FMD subsystem and are subject to change at any time
  43  * without notice.  Applications and drivers using these interfaces will fail
  44  * to run on future releases.  These interfaces should not be used for any
  45  * purpose until they are publicly documented for use outside of Sun.
  46  */
  47 
  48 #define FMD_ADM_VERSION 1               /* library ABI interface version */
  49 #define FMD_ADM_PROGRAM 0               /* connect library to system fmd */
  50 
  51 typedef struct fmd_adm fmd_adm_t;


 112 extern int fmd_adm_case_iter(fmd_adm_t *, const char *, fmd_adm_case_f *,
 113     void *);
 114 
 115 typedef struct fmd_adm_serdinfo {
 116         const char *asi_name;           /* name of serd engine */
 117         uint64_t asi_delta;             /* nsecs from oldest event to now */
 118         uint64_t asi_n;                 /* N parameter (event count) */
 119         uint64_t asi_t;                 /* T parameter (nanoseconds) */
 120         uint_t asi_count;               /* number of events in engine */
 121         uint_t asi_flags;               /* flags (see below) */
 122 } fmd_adm_serdinfo_t;
 123 
 124 #define FMD_ADM_SERD_FIRED      0x1     /* serd engine has fired */
 125 
 126 typedef int fmd_adm_serd_f(const fmd_adm_serdinfo_t *, void *);
 127 
 128 extern int fmd_adm_serd_iter(fmd_adm_t *, const char *,
 129     fmd_adm_serd_f *, void *);
 130 extern int fmd_adm_serd_reset(fmd_adm_t *, const char *, const char *);
 131 
 132 typedef int fmd_adm_xprt_f(id_t, void *);
 133 
 134 extern int fmd_adm_xprt_iter(fmd_adm_t *, fmd_adm_xprt_f *, void *);
 135 extern int fmd_adm_xprt_stats(fmd_adm_t *, id_t, fmd_adm_stats_t *);
 136 
 137 extern int fmd_adm_log_rotate(fmd_adm_t *, const char *);
 138 
 139 #ifdef  __cplusplus
 140 }
 141 #endif
 142 
 143 #endif  /* _FMD_ADM_H */


   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*
  28  * Copyright (c) 2018, Joyent, Inc.
  29  */
  30 
  31 #ifndef _FMD_ADM_H
  32 #define _FMD_ADM_H
  33 


  34 #include <fm/fmd_api.h>
  35 
  36 #ifdef  __cplusplus
  37 extern "C" {
  38 #endif
  39 
  40 /*
  41  * Fault Management Daemon Administrative Interfaces
  42  *
  43  * Note: The contents of this file are private to the implementation of the
  44  * Solaris system and FMD subsystem and are subject to change at any time
  45  * without notice.  Applications and drivers using these interfaces will fail
  46  * to run on future releases.  These interfaces should not be used for any
  47  * purpose until they are publicly documented for use outside of Sun.
  48  */
  49 
  50 #define FMD_ADM_VERSION 1               /* library ABI interface version */
  51 #define FMD_ADM_PROGRAM 0               /* connect library to system fmd */
  52 
  53 typedef struct fmd_adm fmd_adm_t;


 114 extern int fmd_adm_case_iter(fmd_adm_t *, const char *, fmd_adm_case_f *,
 115     void *);
 116 
 117 typedef struct fmd_adm_serdinfo {
 118         const char *asi_name;           /* name of serd engine */
 119         uint64_t asi_delta;             /* nsecs from oldest event to now */
 120         uint64_t asi_n;                 /* N parameter (event count) */
 121         uint64_t asi_t;                 /* T parameter (nanoseconds) */
 122         uint_t asi_count;               /* number of events in engine */
 123         uint_t asi_flags;               /* flags (see below) */
 124 } fmd_adm_serdinfo_t;
 125 
 126 #define FMD_ADM_SERD_FIRED      0x1     /* serd engine has fired */
 127 
 128 typedef int fmd_adm_serd_f(const fmd_adm_serdinfo_t *, void *);
 129 
 130 extern int fmd_adm_serd_iter(fmd_adm_t *, const char *,
 131     fmd_adm_serd_f *, void *);
 132 extern int fmd_adm_serd_reset(fmd_adm_t *, const char *, const char *);
 133 
 134 typedef void fmd_adm_xprt_f(id_t, void *);
 135 
 136 extern int fmd_adm_xprt_iter(fmd_adm_t *, fmd_adm_xprt_f *, void *);
 137 extern int fmd_adm_xprt_stats(fmd_adm_t *, id_t, fmd_adm_stats_t *);
 138 
 139 extern int fmd_adm_log_rotate(fmd_adm_t *, const char *);
 140 
 141 #ifdef  __cplusplus
 142 }
 143 #endif
 144 
 145 #endif  /* _FMD_ADM_H */