4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
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.
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]
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 %#include <fm/fmd_api.h>
30 FMD_ADM_ERR_NOMEM = 1,
42 FMD_ADM_ERR_SERDFIRED,
53 struct fmd_rpc_modstat {
54 struct fmd_stat rms_buf<>;
55 enum fmd_adm_error rms_err;
58 struct fmd_rpc_modinfo {
63 struct fmd_rpc_modinfo *rmi_next;
66 struct fmd_rpc_modlist {
67 enum fmd_adm_error rml_err;
68 struct fmd_rpc_modinfo *rml_list;
72 struct fmd_rpc_rsrcinfo {
79 enum fmd_adm_error rri_err;
82 struct fmd_rpc_rsrclist {
86 enum fmd_adm_error rrl_err;
90 struct fmd_rpc_serdinfo {
97 enum fmd_adm_error rsi_err;
100 struct fmd_rpc_serdlist {
104 enum fmd_adm_error rsl_err;
107 struct fmd_rpc_xprtlist {
110 enum fmd_adm_error rxl_err;
113 struct fmd_rpc_caseinfo {
115 enum fmd_adm_error rci_err;
118 struct fmd_rpc_caselist {
122 enum fmd_adm_error rcl_err;
126 version FMD_ADM_VERSION_1 {
127 struct fmd_rpc_modlist FMD_ADM_MODINFO(void) = 1;
128 struct fmd_rpc_modstat FMD_ADM_MODCSTAT(string) = 2;
129 struct fmd_rpc_modstat FMD_ADM_MODDSTAT(string) = 3;
130 struct fmd_rpc_modstat FMD_ADM_MODGSTAT(void) = 4;
131 int FMD_ADM_MODLOAD(string) = 5;
132 int FMD_ADM_MODUNLOAD(string) = 6;
133 int FMD_ADM_MODRESET(string) = 7;
134 int FMD_ADM_MODGC(string) = 8;
135 struct fmd_rpc_rsrclist FMD_ADM_RSRCLIST(bool) = 9;
136 struct fmd_rpc_rsrcinfo FMD_ADM_RSRCINFO(string) = 10;
137 int FMD_ADM_RSRCFLUSH(string) = 11;
138 int FMD_ADM_RSRCREPAIRED(string) = 12;
139 struct fmd_rpc_serdlist FMD_ADM_SERDINFO_OLD(string) = 13;
140 int FMD_ADM_SERDRESET(string, string) = 14;
141 int FMD_ADM_LOGROTATE(string) = 15;
142 int FMD_ADM_CASEREPAIR(string) = 16;
143 struct fmd_rpc_xprtlist FMD_ADM_XPRTLIST(void) = 17;
144 struct fmd_rpc_modstat FMD_ADM_XPRTSTAT(int32_t) = 18;
145 struct fmd_rpc_caselist FMD_ADM_CASELIST(void) = 19;
146 struct fmd_rpc_caseinfo FMD_ADM_CASEINFO(string) = 20;
147 int FMD_ADM_RSRCREPLACED(string) = 21;
148 int FMD_ADM_RSRCACQUIT(string, string) = 22;
149 int FMD_ADM_CASEACQUIT(string) = 23;
150 struct fmd_rpc_serdlist FMD_ADM_SERDLIST(string) = 24;
151 struct fmd_rpc_serdinfo FMD_ADM_SERDINFO(string, string) = 25;
155 %extern void fmd_adm_1(struct svc_req *, SVCXPRT *);
156 %extern bool_t xdr_fmd_stat(XDR *, struct fmd_stat *);
159 %#undef RW_WRITE_HELD