home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / elog < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.7 KB  |  68 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/elog.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/elog.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    elog.h,v $
  8.  * Revision 1.1  95/01/11  10:19:10  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:19:02  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /*    Copyright (c) 1984 AT&T    */
  16. /*      All Rights Reserved      */
  17.  
  18. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  19. /*    The copyright notice above does not evidence any       */
  20. /*    actual or intended publication of such source code.    */
  21.  
  22. /*
  23. #ident    "@(#)kern-port:sys/elog.h    10.2"
  24. */
  25. /*
  26.  * "True" major device numbers. These correspond
  27.  * to standard positions in the configuration
  28.  * table, but are used for error logging
  29.  * purposes only.
  30.  */
  31.  
  32. #define CNTL    1
  33. #define SYS    2
  34. #define CAC    3
  35. #define PF    4
  36.  
  37. /*
  38.  * IO statistics are kept for each physical unit of each
  39.  * block device (within the driver). Primary purpose is
  40.  * to establish a guesstimate of error rates during
  41.  * error logging.
  42.  */
  43.  
  44. struct iostat {
  45.     long    io_ops;        /* number of read/writes */
  46.     long    io_misc;    /* number of "other" operations */
  47.     long    io_qcnt;    /* number of jobs assigned to drive */
  48.     ushort io_unlog;    /* number of unlogged errors */
  49. };
  50.  
  51. /*
  52.  * structure for system accounting
  53.  */
  54. struct iotime {
  55.     struct iostat ios;
  56.     long    io_bcnt;    /* total blocks transferred */
  57.     time_t    io_resp;    /* total block response time */
  58.     time_t    io_act;        /* total drive active time (cumulative utilization) */
  59. };
  60. #define    io_cnt    ios.io_ops
  61. #define io_qc ios.io_qcnt
  62. /* drive utilization times can be calculated by system software as follows */
  63.  
  64. /* Average drive utilization = (io_cact/io_elapt) */
  65. /* Average drive utilization for last interval = (io_liact/io_intv) */
  66.  
  67. /* EOF elog.h */
  68.