home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / sysinfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-18  |  1.4 KB  |  72 lines

  1. /*
  2.  *    @(#) sysinfo.h 2.3 88/05/18 
  3.  *
  4.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
  5.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
  6.  *    This Module contains Proprietary Information of
  7.  *    The Santa Cruz Operation, Microsoft Corporation
  8.  *    and AT&T, and should be treated as Confidential.
  9.  */
  10.  
  11. /*
  12.  * THIS FILE CONTAINS CODE WHICH IS DESIGNED TO BE
  13.  * PORTABLE BETWEEN DIFFERENT MACHINE ARCHITECTURES
  14.  * AND CONFIGURATIONS. IT SHOULD NOT REQUIRE ANY
  15.  * MODIFICATIONS WHEN ADAPTING XENIX TO NEW HARDWARE.
  16.  */
  17.  
  18.  
  19.  
  20. struct sysinfo {
  21.     time_t    cpu[3];
  22. #define    CPU_IDLE    0
  23. #define    CPU_USER    1
  24. #define    CPU_KERNEL    2
  25.     time_t    wait[3];
  26. #define    W_IO    0
  27. #define    W_SWAP    1
  28. #define    W_PIO    2
  29.     long    bread;
  30.     long    bwrite;
  31.     long    lread;
  32.     long    lwrite;
  33.     long    swapin;
  34.     long    swapout;
  35.     long    pswitch;
  36.     long    qswitch;
  37.     long    idle;
  38.     long    preempt;
  39.     long    syscall;
  40.     long    iget;
  41.     long    namei;
  42.     long    dirblk;
  43.     long    readch;
  44.     long    writech;
  45.     long    rcvint;
  46.     long    xmtint;
  47.     long    mdmint;
  48.     long    rawch;
  49.     long    canch;
  50.     long    outch;
  51.     long    sysfork;
  52.     long    systrap;
  53.     long    devint;
  54. /*
  55.  * Stats on usefulness of namei name cache.
  56.  */
  57.     long    ncs_goodhits;        /* hits that we can really use */
  58.     long    ncs_badhits;        /* hits we must drop */
  59.     long    ncs_falsehits;        /* hits with id mismatch */
  60.     long    ncs_miss;        /* misses */
  61. };
  62.  
  63. extern struct sysinfo sysinfo;
  64.  
  65. struct syswait {
  66.     short    iowait;
  67.     short    swap;
  68.     short    physio;
  69. };
  70.  
  71. extern struct syswait syswait;
  72.