# 2.11BSD#431 - /usr/src/sys/h/dk.h

##### Variables

    cp_time           X
    dk_busy           X
    dk_n              X
    dk_name           X
    dk_ndrive         X
    dk_seek           X
    dk_time           X
    dk_unit           X
    dk_wds            X
    dk_wps            X
    dk_xfer           X
    tk_nin            X
    tk_nout           X

##### Macros

    CPUSTATES         X
    CP_IDLE           X
    CP_NICE           X
    CP_SYS            X
    CP_USER           X
    DK_NDRIVE         X

       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

- in /usr/src/sys/sys/kern_clock.c line 198
- in /usr/src/ucb/PORT/systat/iostat.c line 59, 111(2), 210-211(2), 292-297(2)
- in /usr/src/usr.bin/iostat.c line 60, 192(2), 203-204(2), 272-275(2)

dk_busy defined in line 24; used 31 times

- in /usr/src/sys/pdp/ram.c line 119, 146
- in /usr/src/sys/pdpuba/br.c line 259, 322
- in /usr/src/sys/pdpuba/hk.c line 376, 441, 544, 567
- in /usr/src/sys/pdpuba/ra.c line 781, 1124
- in /usr/src/sys/pdpuba/rk.c line 140, 156
- in /usr/src/sys/pdpuba/rl.c line 423, 501, 535
- in /usr/src/sys/pdpuba/si.c line 178, 224, 316, 338
- in /usr/src/sys/pdpuba/xp.c line 453, 541, 656, 695
- in /usr/src/sys/sys/kern_clock.c line 200
- in /usr/src/ucb/PORT/systat/iostat.c line 58, 101
- in /usr/src/ucb/PORT/systat/vmstat.c line 107, 627
- in /usr/src/usr.bin/iostat.c line 59, 178(2)

dk_n defined in line 32; used 6 times

- in /usr/src/sys/sys/ufs_dsort.c line 69-77(6)

dk_name defined in line 30; used 9 times

- in /usr/src/sys/sys/ufs_dsort.c line 74
- in /usr/src/ucb/vmstat.c line 240, 669-674(3)
- in /usr/src/usr.bin/iostat.c line 111, 284-289(3)

dk_ndrive defined in line 23; used 95 times

- in /usr/src/ucb/PORT/systat/disks.c line 47-57(8), 90, 201, 210
- in /usr/src/ucb/PORT/systat/iostat.c line 83-86(3), 103-109(4), 145, 160, 185, 204, 221, 234
- in /usr/src/ucb/PORT/systat/vmstat.c line 172-177(5), 287, 316, 485, 629-635(4), 666-669(4)
- in /usr/src/ucb/vmstat.c line 233-246(11), 272, 280, 290, 310, 356, 406, 473, 595, 669-671(2)
- in /usr/src/usr.bin/iostat.c line 103-122(19), 131-132(2), 147, 155, 165, 180-186(4), 193, 210, 229-234(2), 284-286(2)

dk_seek defined in line 26; used 33 times

- in /usr/src/sys/pdpuba/br.c line 261
- in /usr/src/sys/pdpuba/hk.c line 442
- in /usr/src/sys/pdpuba/rk.c line 141
- in /usr/src/sys/pdpuba/rl.c line 536
- in /usr/src/sys/pdpuba/si.c line 225, 317
- in /usr/src/sys/pdpuba/xp.c line 542, 658
- in /usr/src/ucb/PORT/systat/iostat.c line 62, 89, 109, 206, 268(2), 277(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line 105, 180, 317, 635, 663-668(3), 688-692(3)
- in /usr/src/usr.bin/iostat.c line 63, 118-119(2), 186, 197, 262(2)

dk_time defined in line 25; used 20 times

- in /usr/src/sys/sys/kern_clock.c line 201
- in /usr/src/ucb/PORT/systat/iostat.c line 60, 87, 103, 206, 256
- in /usr/src/ucb/PORT/systat/vmstat.c line 103, 178, 317, 629, 663-666(3), 679
- in /usr/src/usr.bin/iostat.c line 61, 114-115(2), 180, 197, 250

dk_unit defined in line 31; used 7 times

- in /usr/src/sys/sys/ufs_dsort.c line 75
- in /usr/src/ucb/vmstat.c line 241, 671, 677
- in /usr/src/usr.bin/iostat.c line 112, 286, 292

dk_wds defined in line 28; used 27 times

- in /usr/src/sys/pdp/ram.c line 81
- in /usr/src/sys/pdpuba/br.c line 262
- in /usr/src/sys/pdpuba/hk.c line 546
- in /usr/src/sys/pdpuba/ra.c line 783
- in /usr/src/sys/pdpuba/rk.c line 142
- in /usr/src/sys/pdpuba/rl.c line 503
- in /usr/src/sys/pdpuba/si.c line 318
- in /usr/src/sys/pdpuba/xp.c line 659
- in /usr/src/ucb/PORT/systat/iostat.c line 61, 88, 107, 206, 258
- in /usr/src/ucb/PORT/systat/vmstat.c line 104, 179, 317, 633, 663-667(3), 681
- in /usr/src/usr.bin/iostat.c line 62, 116-117(2), 184, 197, 252

dk_wps defined in line 29; used 9 times

- in /usr/src/sys/pdpuba/br.c line 301
- in /usr/src/sys/pdpuba/hk.c line 112
- in /usr/src/sys/pdpuba/si.c line 86
- in /usr/src/sys/pdpuba/xp.c line 254
- in /usr/src/sys/sys/ufs_dsort.c line 76
- in /usr/src/usr.bin/iostat.c line 113, 131-135(3)

dk_xfer defined in line 27; used 26 times

- in /usr/src/sys/pdp/ram.c line 80
- in /usr/src/sys/pdpuba/br.c line 260
- in /usr/src/sys/pdpuba/hk.c line 545
- in /usr/src/sys/pdpuba/ra.c line 782
- in /usr/src/sys/pdpuba/rl.c line 502
- in /usr/src/sys/pdpuba/xp.c line 657
- in /usr/src/ucb/PORT/systat/iostat.c line 63, 90, 105, 206, 267, 274
- in /usr/src/ucb/PORT/systat/vmstat.c line 106, 181, 317, 631, 664-669(3), 689
- in /usr/src/usr.bin/iostat.c line 64, 120-121(2), 182, 197, 260

tk_nin defined in line 34; used 13 times

- in /usr/src/sys/net/if_sl.c line 465
- in /usr/src/sys/sys/tty.c line 804
- in /usr/src/ucb/PORT/systat/vmstat.c line 108, 319, 636
- in /usr/src/usr.bin/iostat.c line 65, 188(2), 199(4), 209

tk_nout defined in line 35; used 16 times

- in /usr/src/sys/sys/tty.c line 1060, 1085, 1093, 1103, 1432
- in /usr/src/ucb/PORT/systat/vmstat.c line 109, 319, 637
- in /usr/src/usr.bin/iostat.c line 66, 190(2), 200(4), 209

#### Defined macros

CPUSTATES defined in line 12; used 23 times

- in line 22
- in /usr/src/ucb/PORT/systat/iostat.c line 59, 209, 217, 291
- in /usr/src/ucb/PORT/systat/pigs.c line 45, 195, 228-233(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line 98, 306-307(2), 321, 366, 550
- in /usr/src/ucb/vmstat.c line 119, 361, 419, 609
- in /usr/src/usr.bin/iostat.c line 60, 202, 213, 271

CP_IDLE defined in line 17; used 4 times

- in /usr/src/sys/sys/kern_clock.c line 191
- in /usr/src/ucb/PORT/systat/pigs.c line 232(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line 307

CP_NICE defined in line 15; used 2 times

- in /usr/src/sys/sys/kern_clock.c line 174
- in /usr/src/ucb/PORT/systat/vmstat.c line 307

CP_SYS defined in line 16; used 2 times

- in /usr/src/sys/sys/kern_clock.c line 189
- in /usr/src/ucb/PORT/systat/vmstat.c line 307

CP_USER defined in line 14; used 2 times

- in /usr/src/sys/sys/kern_clock.c line 176
- in /usr/src/ucb/PORT/systat/vmstat.c line 307

DK_NDRIVE defined in line 19; used 10 times

- in line 25-31(7)
- in /usr/src/sys/sys/kern_clock.c line 150, 199
- in /usr/src/sys/sys/ufs_dsort.c line 69

#### Usage of this include

dk.h used 17 times

- in /usr/src/sys/net/if_sl.c line 44
- in /usr/src/sys/pdp/ram.c line 26
- in /usr/src/sys/pdpuba/br.c line 47
- in /usr/src/sys/pdpuba/hk.c line 45
- in /usr/src/sys/pdpuba/ra.c line 143
- in /usr/src/sys/pdpuba/rk.c line 21
- in /usr/src/sys/pdpuba/rl.c line 50
- in /usr/src/sys/pdpuba/si.c line 24
- in /usr/src/sys/pdpuba/xp.c line 26
- in /usr/src/sys/sys/kern_clock.c line 16
- in /usr/src/sys/sys/tty.c line 16
- in /usr/src/sys/sys/ufs_bio.c line 14
- in /usr/src/sys/sys/ufs_dsort.c line 16
- in /usr/src/ucb/PORT/systat/pigs.c line 19
- in /usr/src/ucb/PORT/systat/systat.h line 16
- in /usr/src/ucb/vmstat.c line 22
- in /usr/src/usr.bin/iostat.c line 16

Last modified: 1988-08-22 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 641 |