/* * COMPONENT_NAME: onchdrs * * FUNCTIONS: none * * ORIGINS: 24,27 * * * (C) COPYRIGHT International Business Machines Corp. 1988,1993 * All Rights Reserved * Licensed Materials - Property of IBM * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ /* * Copyright (c) 1988 by Sun Microsystems, Inc. * (#) from SUN 1.9 */ /* (#)rstat.h 1.2 88/05/08 4.0NFSSRC SMI */ #ifndef _H_rpcsvc_rstat #define _H_rpcsvc_rstat #include #ifndef CPUSTATES #define CPUSTATES 4 #define DK_NDRIVE 4 #endif #ifndef DST_NONE #include #endif #define RSTATPROG 100001 #define RSTATVERS_ORIG 1 #define RSTATVERS_SWTCH 2 #define RSTATVERS_TIME 3 #define RSTATVERS 3 #define RSTATPROC_STATS 1 #define RSTATPROC_HAVEDISK 2 struct stats { /* version 1 */ int cp_time[CPUSTATES]; int dk_xfer[DK_NDRIVE]; unsigned v_pgpgin; /* these are cumulative sum */ unsigned v_pgpgout; unsigned v_pswpin; unsigned v_pswpout; unsigned v_intr; int if_ipackets; int if_ierrors; int if_opackets; int if_oerrors; int if_collisions; }; bool_t xdr_stats(XDR *, struct stats *); struct statsswtch { /* version 2 */ int cp_time[CPUSTATES]; int dk_xfer[DK_NDRIVE]; unsigned v_pgpgin; /* these are cumulative sum */ unsigned v_pgpgout; unsigned v_pswpin; unsigned v_pswpout; unsigned v_intr; int if_ipackets; int if_ierrors; int if_opackets; int if_oerrors; int if_collisions; unsigned v_swtch; long avenrun[3]; struct timeval boottime; }; bool_t xdr_statsswtch(XDR *, struct statsswtch *); struct statstime { /* version 3 */ int cp_time[CPUSTATES]; int dk_xfer[DK_NDRIVE]; unsigned v_pgpgin; /* these are cumulative sum */ unsigned v_pgpgout; unsigned v_pswpin; unsigned v_pswpout; unsigned v_intr; int if_ipackets; int if_ierrors; int if_opackets; int if_oerrors; int if_collisions; unsigned v_swtch; long avenrun[3]; struct timeval boottime; struct timeval curtime; }; bool_t xdr_statstime(XDR *, struct statstime *); int havedisk(char *); #endif /*_H_rpcsvc_rstat*/