home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#) sysinfo.h 2.3 88/05/18
- *
- * Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
- * Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
- * This Module contains Proprietary Information of
- * The Santa Cruz Operation, Microsoft Corporation
- * and AT&T, and should be treated as Confidential.
- */
-
- /*
- * THIS FILE CONTAINS CODE WHICH IS DESIGNED TO BE
- * PORTABLE BETWEEN DIFFERENT MACHINE ARCHITECTURES
- * AND CONFIGURATIONS. IT SHOULD NOT REQUIRE ANY
- * MODIFICATIONS WHEN ADAPTING XENIX TO NEW HARDWARE.
- */
-
-
-
- struct sysinfo {
- time_t cpu[3];
- #define CPU_IDLE 0
- #define CPU_USER 1
- #define CPU_KERNEL 2
- time_t wait[3];
- #define W_IO 0
- #define W_SWAP 1
- #define W_PIO 2
- long bread;
- long bwrite;
- long lread;
- long lwrite;
- long swapin;
- long swapout;
- long pswitch;
- long qswitch;
- long idle;
- long preempt;
- long syscall;
- long iget;
- long namei;
- long dirblk;
- long readch;
- long writech;
- long rcvint;
- long xmtint;
- long mdmint;
- long rawch;
- long canch;
- long outch;
- long sysfork;
- long systrap;
- long devint;
- /*
- * Stats on usefulness of namei name cache.
- */
- long ncs_goodhits; /* hits that we can really use */
- long ncs_badhits; /* hits we must drop */
- long ncs_falsehits; /* hits with id mismatch */
- long ncs_miss; /* misses */
- };
-
- extern struct sysinfo sysinfo;
-
- struct syswait {
- short iowait;
- short swap;
- short physio;
- };
-
- extern struct syswait syswait;
-