1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)dk.h	7.1 (Berkeley) 6/4/86
   7:  */
   8: 
   9: /*
  10:  * Instrumentation
  11:  */
  12: #define CPUSTATES   4
  13: 
  14: #define CP_USER     0
  15: #define CP_NICE     1
  16: #define CP_SYS      2
  17: #define CP_IDLE     3
  18: 
  19: #define DK_NDRIVE   10
  20: 
  21: #if defined(KERNEL) && defined(UCB_METER) && !defined(SUPERVISOR)
  22: long    cp_time[CPUSTATES]; /* number of ticks spent in each cpu state */
  23: int dk_ndrive;      /* number of drives being monitored */
  24: int dk_busy;        /* bit array of drive busy flags */
  25: long    dk_time[DK_NDRIVE]; /* ticks spent with drive busy */
  26: long    dk_seek[DK_NDRIVE]; /* number of seeks */
  27: long    dk_xfer[DK_NDRIVE]; /* number of transfers */
  28: long    dk_wds[DK_NDRIVE];  /* number of clicks transfered */
  29: long    dk_wps[DK_NDRIVE];  /* words per second */
  30: char    *dk_name[DK_NDRIVE];    /* names of monitored drives */
  31: int dk_unit[DK_NDRIVE]; /* unit numbers of monitored drives */
  32: int dk_n;           /* number of dk numbers assigned so far */
  33: 
  34: long    tk_nin;         /* number of tty characters input */
  35: long    tk_nout;        /* number of tty characters output */
  36: #endif

Defined variables

cp_time defined in line 22; used 15 times
dk_n defined in line 32; used 6 times
dk_name defined in line 30; used 9 times
dk_ndrive defined in line 23; used 95 times
dk_unit defined in line 31; used 7 times
tk_nout defined in line 35; used 16 times

Defined macros

CP_NICE defined in line 15; used 2 times
CP_SYS defined in line 16; used 2 times
CP_USER defined in line 14; used 2 times
DK_NDRIVE defined in line 19; used 10 times

Usage of this include

Last modified: 1988-08-22
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 705
Valid CSS Valid XHTML 1.0 Strict