Print this page
195 Need replacement for nfs/lockd+klm


   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 %/*
  23 % * Copyright (c) 1986, 1994 by Sun Microsystems, Inc.
  24 % * All rights reserved.
  25 % */
  26 
  27 %/* from sm_inter.x */
  28 
  29 #ifdef RPC_HDR
  30 %
  31 %#pragma ident  "%Z%%M% %I%     %E% SMI"
  32 %
  33 #endif
  34 
  35 /*
  36  * Status monitor protocol specification
  37  */
  38 
  39 program SM_PROG {
  40         version SM_VERS  {
  41                 /* res_stat = stat_succ if status monitor agrees to monitor */
  42                 /* res_stat = stat_fail if status monitor cannot monitor */
  43                 /* if res_stat == stat_succ, state = state number of site */
  44                 /* sm_name */
  45                 struct sm_stat_res      SM_STAT(struct sm_name) = 1;
  46 
  47                 /* res_stat = stat_succ if status monitor agrees to monitor */
  48                 /* res_stat = stat_fail if status monitor cannot monitor */
  49                 /* stat consists of state number of local site */
  50                 struct sm_stat_res      SM_MON(struct mon) = 2;
  51 
  52                 /* stat consists of state number of local site */
  53                 struct sm_stat          SM_UNMON(struct mon_id) = 3;
  54 


  81 };
  82 
  83 
  84 struct mon{
  85         struct mon_id mon_id;
  86         opaque priv[16];        /* private information to store at monitor */
  87                                 /* for requesting process */
  88 };
  89 
  90 
  91 /*
  92  * state # of status monitor monitonically increases each time
  93  * status of the site changes:
  94  * an even number (>= 0) indicates the site is down and
  95  * an odd number (> 0) indicates the site is up;
  96  */
  97 struct sm_stat {
  98         int state;              /* state # of status monitor */
  99 };
 100 
 101 enum res {
 102         stat_succ = 0,          /* status monitor agrees to monitor */
 103         stat_fail = 1           /* status monitor cannot monitor */
 104 };
 105 
 106 struct sm_stat_res {
 107         res res_stat;
 108         int state;
 109 };
 110 
 111 /*
 112  * structure of the status message sent by the status monitor to the
 113  * requesting program when a monitored site changes status.
 114  */
 115 struct status {
 116         string mon_name<SM_MAXSTRLEN>;
 117         int state;
 118         opaque priv[16];                /* stored private information */
 119 };
 120 
 121 /*
 122  * structure sent between statd's to announce a state change (e.g.,
 123  * reboot).
 124  */
 125 struct stat_chge {
 126         string mon_name<SM_MAXSTRLEN>;
 127         int state;
 128 };


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






  29 /*
  30  * Status monitor protocol specification
  31  */
  32 
  33 program SM_PROG {
  34         version SM_VERS  {
  35                 /* res_stat = stat_succ if status monitor agrees to monitor */
  36                 /* res_stat = stat_fail if status monitor cannot monitor */
  37                 /* if res_stat == stat_succ, state = state number of site */
  38                 /* sm_name */
  39                 struct sm_stat_res      SM_STAT(struct sm_name) = 1;
  40 
  41                 /* res_stat = stat_succ if status monitor agrees to monitor */
  42                 /* res_stat = stat_fail if status monitor cannot monitor */
  43                 /* stat consists of state number of local site */
  44                 struct sm_stat_res      SM_MON(struct mon) = 2;
  45 
  46                 /* stat consists of state number of local site */
  47                 struct sm_stat          SM_UNMON(struct mon_id) = 3;
  48 


  75 };
  76 
  77 
  78 struct mon{
  79         struct mon_id mon_id;
  80         opaque priv[16];        /* private information to store at monitor */
  81                                 /* for requesting process */
  82 };
  83 
  84 
  85 /*
  86  * state # of status monitor monitonically increases each time
  87  * status of the site changes:
  88  * an even number (>= 0) indicates the site is down and
  89  * an odd number (> 0) indicates the site is up;
  90  */
  91 struct sm_stat {
  92         int state;              /* state # of status monitor */
  93 };
  94 
  95 enum sm_res {
  96         stat_succ = 0,          /* status monitor agrees to monitor */
  97         stat_fail = 1           /* status monitor cannot monitor */
  98 };
  99 
 100 struct sm_stat_res {
 101         sm_res res_stat;
 102         int state;
 103 };
 104 
 105 /*
 106  * structure of the status message sent by the status monitor to the
 107  * requesting program when a monitored site changes status.
 108  */
 109 struct sm_status {
 110         string mon_name<SM_MAXSTRLEN>;
 111         int state;
 112         opaque priv[16];                /* stored private information */
 113 };
 114 
 115 /*
 116  * structure sent between statd's to announce a state change (e.g.,
 117  * reboot).
 118  */
 119 struct stat_chge {
 120         string mon_name<SM_MAXSTRLEN>;
 121         int state;
 122 };