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

##### Macros

    BQUEUES           X
    BQ_AGE            X
    BQ_EMPTY          X
    BQ_LOCKED         X
    BQ_LRU            X
    BUFHASH           X
    BUFHSZ            X
    B_AGE             X
    B_ASYNC           X
    B_BAD             X
    B_BUSY            X
    B_CLRBUF          X
    B_DELWRI          X
    B_DONE            X
    B_ERROR           X
    B_INVAL           X
    B_LOCKED          X
    B_MAP             X
    B_PHYS            X
    B_RAMREMAP        X
    B_READ            X
    B_SYNC            X
    B_TAPE            X
    B_UBAREMAP        X
    B_WANTED          X
    B_WRITE           X
    b_actf            X
    b_active          X
    b_actl            X
    b_cylin           X
    b_errcnt          X
    bawrite           X
    bfree             X
    bftopaddr         X
    binshash          X
    binsheadfree      X
    binstailfree      X
    bremfree          X
    bremhash          X
    iodone            X
    iowait            X
    notavail          X

##### struct's

    buf               X
    bufhd             X

       1: /*
       2:  * Copyright (c) 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:  *	@(#)buf.h	1.4 (2.11BSD GTE) 1996/9/13
       7:  */
       8:
       9: /*
      10:  * The header for buffers in the buffer pool and otherwise used
      11:  * to describe a block i/o request is given here.
      12:  *
      13:  * Each buffer in the pool is usually doubly linked into 2 lists:
      14:  * hashed into a chain by <dev,blkno> so it can be located in the cache,
      15:  * and (usually) on (one of several) queues.  These lists are circular and
      16:  * doubly linked for easy removal.
      17:  *
      18:  * There are currently two queues for buffers:
      19:  * 	one for buffers containing ``useful'' information (the cache)
      20:  *	one for buffers containing ``non-useful'' information
      21:  *		(and empty buffers, pushed onto the front)
      22:  * These queues contain the buffers which are available for
      23:  * reallocation, are kept in lru order.  When not on one of these queues,
      24:  * the buffers are ``checked out'' to drivers which use the available list
      25:  * pointers to keep track of them in their i/o active queues.
      26:  */
      27:
      28: /*
      29:  * Bufhd structures used at the head of the hashed buffer queues.
      30:  * We only need three words for these, so this abbreviated
      31:  * definition saves some space.
      32:  */
      33: struct bufhd
      34: {
      35:     short   b_flags;        /* see defines below */
      36:     struct  buf *b_forw, *b_back;   /* fwd/bkwd pointer in chain */
      37: };
      38: struct buf
      39: {
      40:     short   b_flags;        /* see defines below */
      41:     struct  buf *b_forw, *b_back;   /* hash chain (2 way street) */
      42:     struct  buf *av_forw, *av_back; /* position on free list if not BUSY */
      43: #define b_actf  av_forw         /* alternate names for driver queue */
      44: #define b_actl  av_back         /*    head - isn't history wonderful */
      45:     u_short b_bcount;       /* transfer count */
      46: #define b_active b_bcount       /* driver queue head: drive active */
      47:     char    b_error;        /* returned after I/O */
      48:     char    b_xmem;         /* high order core address */
      49:     dev_t   b_dev;          /* major+minor device name */
      50:     union {
      51:         caddr_t b_addr;     /* low order core address */
      52:     } b_un;
      53:     daddr_t b_blkno;        /* block # on device */
      54:     u_short b_resid;        /* words not transferred after error */
      55: #define b_cylin b_resid         /* disksort */
      56: #define b_errcnt b_resid        /* while i/o in progress: # retries */
      57: };
      58:
      59: /*
      60:  * We never use BQ_LOCKED or BQ_EMPTY, but if you want the 4.X block I/O
      61:  * code to drop in, you have to have BQ_AGE and BQ_LRU *after* the first
      62:  * queue, and it only costs 6 bytes of data space.
      63:  */
      64: #define BQUEUES     3       /* number of free buffer queues */
      65:
      66: #define BQ_LOCKED   0       /* super-blocks &c */
      67: #define BQ_LRU      1       /* lru, useful buffers */
      68: #define BQ_AGE      2       /* rubbish */
      69: #define BQ_EMPTY    3       /* buffer headers with no memory */
      70:
      71: /* Flags to low-level allocation routines. */
      72: #define B_CLRBUF    0x01    /* Request allocated buffer be cleared. */
      73: #define B_SYNC      0x02    /* Do all allocations synchronously. */
      74:
      75: #define bawrite(bp) {(bp)->b_flags |= B_ASYNC; bwrite(bp);}
      76: #define bfree(bp)   (bp)->b_bcount = 0
      77: #define bftopaddr(bp)   ((u_int)(bp)->b_un.b_addr >> 6 | (bp)->b_xmem << 10)
      78:
      79: #if defined(KERNEL) && !defined(SUPERVISOR)
      80: #define BUFHSZ  16  /* must be power of 2 */
      81: #define BUFHASH(dev,blkno)  ((struct buf *)&bufhash[((long)(dev) + blkno) & ((long)(BUFHSZ - 1))])
      82: extern struct   buf buf[];      /* the buffer pool itself */
      83: extern int  nbuf;           /* number of buffer headers */
      84: extern struct   bufhd bufhash[];    /* heads of hash lists */
      85: extern struct   buf bfreelist[];    /* heads of available lists */
      86:
      87: struct  buf *balloc();
      88: struct  buf *getblk();
      89: struct  buf *geteblk();
      90: struct  buf *getnewbuf();
      91: struct  buf *bread();
      92: struct  buf *breada();
      93: #endif
      94:
      95: /*
      96:  * These flags are kept in b_flags.
      97:  */
      98: #define B_WRITE     0x00000     /* non-read pseudo-flag */
      99: #define B_READ      0x00001     /* read when I/O occurs */
     100: #define B_DONE      0x00002     /* transaction finished */
     101: #define B_ERROR     0x00004     /* transaction aborted */
     102: #define B_BUSY      0x00008     /* not on av_forw/back list */
     103: #define B_PHYS      0x00010     /* physical IO */
     104: #define B_MAP       0x00020     /* alloc UNIBUS */
     105: #define B_WANTED    0x00040     /* issue wakeup when BUSY goes off */
     106: #define B_AGE       0x00080     /* delayed write for correct aging */
     107: #define B_ASYNC     0x00100     /* don't wait for I/O completion */
     108: #define B_DELWRI    0x00200     /* write at exit of avail list */
     109: #define B_TAPE      0x00400     /* this is a magtape (no bdwrite) */
     110: #define B_INVAL     0x00800     /* does not contain valid info */
     111: #define B_BAD       0x01000     /* bad block revectoring in progress */
     112: #define B_LOCKED    0x02000     /* locked in core (not reusable) */
     113: #define B_UBAREMAP  0x04000     /* addr UNIBUS virtual, not physical */
     114: #define B_RAMREMAP  0x08000     /* remapped into ramdisk */
     115:
     116: /*
     117:  * Insq/Remq for the buffer hash lists.
     118:  */
     119: #define bremhash(bp) { \
     120:     (bp)->b_back->b_forw = (bp)->b_forw; \
     121:     (bp)->b_forw->b_back = (bp)->b_back; \
     122: }
     123: #define binshash(bp, dp) { \
     124:     (bp)->b_forw = (dp)->b_forw; \
     125:     (bp)->b_back = (dp); \
     126:     (dp)->b_forw->b_back = (bp); \
     127:     (dp)->b_forw = (bp); \
     128: }
     129:
     130: /*
     131:  * Insq/Remq for the buffer free lists.
     132:  */
     133: #define bremfree(bp) { \
     134:     (bp)->av_back->av_forw = (bp)->av_forw; \
     135:     (bp)->av_forw->av_back = (bp)->av_back; \
     136: }
     137: #define binsheadfree(bp, dp) { \
     138:     (dp)->av_forw->av_back = (bp); \
     139:     (bp)->av_forw = (dp)->av_forw; \
     140:     (dp)->av_forw = (bp); \
     141:     (bp)->av_back = (dp); \
     142: }
     143: #define binstailfree(bp, dp) { \
     144:     (dp)->av_back->av_forw = (bp); \
     145:     (bp)->av_back = (dp)->av_back; \
     146:     (dp)->av_back = (bp); \
     147:     (bp)->av_forw = (dp); \
     148: }
     149:
     150: /*
     151:  * Take a buffer off the free list it's on and
     152:  * mark it as being use (B_BUSY) by a device.
     153:  */
     154: #define notavail(bp) { \
     155:     register int x = splbio(); \
     156:     bremfree(bp); \
     157:     (bp)->b_flags |= B_BUSY; \
     158:     splx(x); \
     159: }
     160:
     161: #define iodone  biodone
     162: #define iowait  biowait

#### Defined struct's

buf defined in line 38; used 441 times

- in line 36-42(5), 82-92(16)
- in /usr/src/new/crash/crash.c line 104(2), 330-337(16), 1089-1093(8), 1101(2), 1110(2)
- in /usr/src/sys/CURLY/param.c line 72(2)
- in /usr/src/sys/GENERIC/param.c line 72(2)
- in /usr/src/sys/QT/param.c line 72(2)
- in /usr/src/sys/conf/param.c line 72(2)
- in /usr/src/sys/pdp/genassym.c line 27-32(4)
- in /usr/src/sys/pdp/machdep.c line 177(2), 240(2), 322(2), 417(2)
- in /usr/src/sys/pdp/machdep2.c line 399(2)
- in /usr/src/sys/pdp/ram.c line 62(2), 108(2)
- in /usr/src/sys/pdpuba/br.c line 122(2), 165-167(4), 212(2), 310(2), 356(2)
- in /usr/src/sys/pdpuba/dr.c line 36(2), 92-94(4), 122(2), 153(2), 322(2)
- in /usr/src/sys/pdpuba/hk.c line 82-88(6), 327-329(4), 370(2), 399(2), 463(2), 555(2), 782(2)
- in /usr/src/sys/pdpuba/ht.c line 25(2), 134(2), 170(2), 195(2), 282(2), 402(2)
- in /usr/src/sys/pdpuba/ra.c line 192(2), 210-211(4), 641-644(4), 703-704(4), 817(2), 1023-1024(4), 1104(2), 1111(2)
- in /usr/src/sys/pdpuba/rk.c line 31(2), 76(2), 101(2), 116(2), 150(2)
- in /usr/src/sys/pdpuba/rl.c line 82-83(4), 321(2), 368(2), 414(2), 564(2)
- in /usr/src/sys/pdpuba/rx.c line 71-72(4), 125(2), 152(2), 179(2), 225(2), 390(2), 409(2)
- in /usr/src/sys/pdpuba/si.c line 63-64(4), 118-120(4), 169-170(4), 250-252(4), 329-331(4)
- in /usr/src/sys/pdpuba/tm.c line 32-33(4), 214(2), 251(2), 300(2), 443(2), 590(2), 618(2)
- in /usr/src/sys/pdpuba/tmscp.c line 456(2), 807(2), 850(2), 975(2), 1193(2), 1336-1338(4), 1408(2), 1548(4), 1572(4), 1802(4), 1828-1829(6), 1857(4)
- in /usr/src/sys/pdpuba/ts.c line 57(2), 67(2), 96(2), 216(2), 253-258(4), 291-292(4), 411(2), 579(2), 655(2)
- in /usr/src/sys/pdpuba/xp.c line 58-59(4), 89-94(6), 386-391(4), 441-442(4), 567-569(4), 671-674(4), 800(2)
- in /usr/src/sys/sys/init_main.c line 267(2), 278(2)
- in /usr/src/sys/sys/kern_exec.c line 47(2)
- in /usr/src/sys/sys/kern_synch.c line 417(2)
- in /usr/src/sys/sys/kern_sysctl.c line 974(2)
- in /usr/src/sys/sys/subr_prf.c line 303(2)
- in /usr/src/sys/sys/sys_inode.c line 113(2)
- in /usr/src/sys/sys/ufs_alloc.c line 33(2), 39(2), 137(2), 246(2)
- in /usr/src/sys/sys/ufs_bio.c line 24-29(4), 49(2), 55(2), 113(2), 146(2), 164-166(4), 215-216(4), 236-241(4), 286-289(4), 307-310(4), 354(2), 371(2), 394-395(4), 429-430(4), 455(2), 479(2)
- in /usr/src/sys/sys/ufs_bmap.c line 37-38(4)
- in /usr/src/sys/sys/ufs_disksubr.c line 66(2), 159(2), 372(2)
- in /usr/src/sys/sys/ufs_dsort.c line 19-22(6)
- in /usr/src/sys/sys/ufs_inode.c line 107(2), 368(2), 440(2), 602(2), 632(2)
- in /usr/src/sys/sys/ufs_mount.c line 165(2)
- in /usr/src/sys/sys/ufs_namei.c line 20(2), 120(2), 895(2), 1013(2), 1066(2), 1074(2)
- in /usr/src/sys/sys/ufs_subr.c line 68-69(4)
- in /usr/src/sys/sys/ufs_syscalls2.c line 130(2)
- in /usr/src/sys/sys/vm_swp.c line 29(2), 125(2), 220(2)

bufhd defined in line 33; used 14 times

- in line 84(2)
- in /usr/src/sys/CURLY/param.c line 73(2)
- in /usr/src/sys/GENERIC/param.c line 73(2)
- in /usr/src/sys/QT/param.c line 73(2)
- in /usr/src/sys/conf/param.c line 73(2)
- in /usr/src/sys/sys/init_main.c line 264(2)
- in /usr/src/sys/sys/ufs_bio.c line 480(2)

#### Defined macros

BQUEUES defined in line 64; used 5 times

- in /usr/src/sys/CURLY/param.c line 72
- in /usr/src/sys/GENERIC/param.c line 72
- in /usr/src/sys/QT/param.c line 72
- in /usr/src/sys/conf/param.c line 72
- in /usr/src/sys/sys/init_main.c line 282

BQ_AGE defined in line 68; used 5 times

- in /usr/src/sys/sys/init_main.c line 291
- in /usr/src/sys/sys/ufs_bio.c line 192, 198, 295, 315

BQ_EMPTY defined in line 69; used 1 times

- in /usr/src/sys/sys/ufs_bio.c line 435

BQ_LOCKED defined in line 66; used 1 times

- in /usr/src/sys/sys/ufs_bio.c line 196

BQ_LRU defined in line 67; used 1 times

- in /usr/src/sys/sys/ufs_bio.c line 200

BUFHASH defined in line 81; used 3 times

- in /usr/src/sys/sys/ufs_bio.c line 218, 254, 398

BUFHSZ defined in line 80; used 7 times

- in line 81
- in /usr/src/sys/CURLY/param.c line 73
- in /usr/src/sys/GENERIC/param.c line 73
- in /usr/src/sys/QT/param.c line 73
- in /usr/src/sys/conf/param.c line 73
- in /usr/src/sys/sys/init_main.c line 266
- in /usr/src/sys/sys/ufs_bio.c line 483

B_AGE defined in line 106; used 12 times

- in /usr/src/sys/sys/kern_exec.c line 265, 288, 325, 343, 380
- in /usr/src/sys/sys/kern_sysctl.c line 1020
- in /usr/src/sys/sys/sys_inode.c line 280, 296
- in /usr/src/sys/sys/ufs_bio.c line 134, 197, 203
- in /usr/src/sys/sys/ufs_disksubr.c line 102

B_ASYNC defined in line 107; used 6 times

- in line 75
- in /usr/src/sys/sys/ufs_bio.c line 87, 130, 203, 379, 440

B_BAD defined in line 111; used 6 times

- in /usr/src/sys/pdpuba/hk.c line 570, 859, 870
- in /usr/src/sys/pdpuba/xp.c line 688, 892, 905

B_BUSY defined in line 102; used 25 times

- in line 157
- in /usr/src/sys/pdp/machdep2.c line 405
- in /usr/src/sys/pdpuba/hk.c line 412
- in /usr/src/sys/pdpuba/ht.c line 138, 148
- in /usr/src/sys/pdpuba/rx.c line 414, 420
- in /usr/src/sys/pdpuba/tm.c line 218, 228
- in /usr/src/sys/pdpuba/tmscp.c line 814-819(2)
- in /usr/src/sys/pdpuba/ts.c line 220, 230
- in /usr/src/sys/pdpuba/xp.c line 485
- in /usr/src/sys/sys/init_main.c line 292
- in /usr/src/sys/sys/ufs_bio.c line 203, 262, 344, 406
- in /usr/src/sys/sys/ufs_disksubr.c line 81
- in /usr/src/sys/sys/ufs_subr.c line 87
- in /usr/src/sys/sys/vm_swp.c line 46, 170, 178, 203

B_CLRBUF defined in line 72; used 5 times

- in /usr/src/sys/sys/sys_inode.c line 236
- in /usr/src/sys/sys/ufs_alloc.c line 98
- in /usr/src/sys/sys/ufs_bmap.c line 102, 137
- in /usr/src/sys/sys/ufs_inode.c line 448

B_DELWRI defined in line 108; used 16 times

- in /usr/src/sys/sys/kern_exec.c line 266, 289, 326
- in /usr/src/sys/sys/sys_inode.c line 282
- in /usr/src/sys/sys/ufs_bio.c line 32, 65, 83, 118-119(2), 133, 149, 155, 327, 412, 437
- in /usr/src/sys/sys/ufs_subr.c line 84

B_DONE defined in line 100; used 13 times

- in /usr/src/sys/pdpuba/ht.c line 143
- in /usr/src/sys/pdpuba/tm.c line 223
- in /usr/src/sys/pdpuba/ts.c line 225
- in /usr/src/sys/sys/ufs_bio.c line 32, 65, 83, 118, 155, 359, 374-378(2)
- in /usr/src/sys/sys/vm_swp.c line 58, 189

B_ERROR defined in line 101; used 70 times

- in /usr/src/sys/pdp/machdep.c line 335, 452
- in /usr/src/sys/pdp/ram.c line 69, 75, 150
- in /usr/src/sys/pdpuba/br.c line 180, 194, 232, 349
- in /usr/src/sys/pdpuba/dr.c line 101, 190, 335
- in /usr/src/sys/pdpuba/hk.c line 361, 519, 582, 590
- in /usr/src/sys/pdpuba/ht.c line 165, 272, 333, 442
- in /usr/src/sys/pdpuba/ra.c line 692, 1088, 1105, 1151
- in /usr/src/sys/pdpuba/rk.c line 88, 182
- in /usr/src/sys/pdpuba/rl.c line 359, 455
- in /usr/src/sys/pdpuba/rx.c line 135, 241
- in /usr/src/sys/pdpuba/si.c line 135, 289, 355
- in /usr/src/sys/pdpuba/tm.c line 244, 326, 362, 521, 658
- in /usr/src/sys/pdpuba/tmscp.c line 842, 1273, 1348, 1362, 1979
- in /usr/src/sys/pdpuba/ts.c line 246, 313, 333, 518, 692
- in /usr/src/sys/pdpuba/xp.c line 423, 619, 710, 740
- in /usr/src/sys/sys/sys_inode.c line 271
- in /usr/src/sys/sys/ufs_alloc.c line 62, 199
- in /usr/src/sys/sys/ufs_bio.c line 118, 180-182(2), 190, 459
- in /usr/src/sys/sys/ufs_bmap.c line 122
- in /usr/src/sys/sys/ufs_inode.c line 202, 380, 503, 635
- in /usr/src/sys/sys/ufs_mount.c line 201
- in /usr/src/sys/sys/ufs_namei.c line 783, 1086
- in /usr/src/sys/sys/vm_swp.c line 61, 200

B_INVAL defined in line 110; used 10 times

- in /usr/src/sys/sys/init_main.c line 292
- in /usr/src/sys/sys/ufs_bio.c line 190, 222, 259, 292, 403, 486
- in /usr/src/sys/sys/ufs_disksubr.c line 102
- in /usr/src/sys/sys/vm_swp.c line 46, 178

B_LOCKED defined in line 112; used 2 times

- in /usr/src/sys/sys/ufs_bio.c line 181, 195

B_MAP defined in line 104; used 6 times

- in /usr/src/sys/pdp/machdep.c line 228, 246, 255
- in /usr/src/sys/pdpuba/hk.c line 835
- in /usr/src/sys/pdpuba/xp.c line 875
- in /usr/src/sys/sys/ufs_bio.c line 376

B_PHYS defined in line 103; used 16 times

- in /usr/src/sys/pdp/machdep.c line 192
- in /usr/src/sys/pdp/ram.c line 85
- in /usr/src/sys/pdpuba/hk.c line 412
- in /usr/src/sys/pdpuba/ht.c line 177, 302
- in /usr/src/sys/pdpuba/tm.c line 271, 497, 514
- in /usr/src/sys/pdpuba/ts.c line 122, 260, 473, 494
- in /usr/src/sys/pdpuba/xp.c line 485
- in /usr/src/sys/sys/ufs_bio.c line 331
- in /usr/src/sys/sys/vm_swp.c line 46, 178

B_RAMREMAP defined in line 114; used 4 times

- in /usr/src/sys/pdp/ram.c line 89-96(3)
- in /usr/src/sys/sys/ufs_bio.c line 331

B_READ defined in line 99; used 67 times

- in /usr/src/sys/pdp/machdep.c line 369, 457
- in /usr/src/sys/pdp/ram.c line 87, 125
- in /usr/src/sys/pdpuba/br.c line 252
- in /usr/src/sys/pdpuba/hk.c line 412, 535, 633, 897
- in /usr/src/sys/pdpuba/ht.c line 148, 225, 233, 246, 294, 304, 354
- in /usr/src/sys/pdpuba/ra.c line 762
- in /usr/src/sys/pdpuba/rk.c line 132
- in /usr/src/sys/pdpuba/rl.c line 405
- in /usr/src/sys/pdpuba/rx.c line 132, 194
- in /usr/src/sys/pdpuba/si.c line 295, 306
- in /usr/src/sys/pdpuba/tm.c line 228, 366, 374, 385, 470, 497
- in /usr/src/sys/pdpuba/tmscp.c line 819, 1114
- in /usr/src/sys/pdpuba/ts.c line 230, 337, 345, 359, 432, 473
- in /usr/src/sys/pdpuba/xp.c line 485, 625, 642-646(3)
- in /usr/src/sys/sys/kern_sysctl.c line 1001
- in /usr/src/sys/sys/sys_inode.c line 232
- in /usr/src/sys/sys/ufs_bio.c line 36, 66, 87, 118
- in /usr/src/sys/sys/ufs_bmap.c line 56, 102, 137
- in /usr/src/sys/sys/ufs_disksubr.c line 81, 174, 405
- in /usr/src/sys/sys/ufs_dsort.c line 33-38(4)
- in /usr/src/sys/sys/ufs_namei.c line 782, 1078
- in /usr/src/sys/sys/ufs_subr.c line 77
- in /usr/src/sys/sys/vm_swap.c line 56, 62-69(3)
- in /usr/src/sys/sys/vm_swp.c line 221
- in /usr/src/sys/sys/vm_text.c line 258

B_SYNC defined in line 73; used 5 times

- in /usr/src/sys/sys/sys_inode.c line 219
- in /usr/src/sys/sys/ufs_bmap.c line 64, 148
- in /usr/src/sys/sys/ufs_inode.c line 450, 645

B_TAPE defined in line 109; used 8 times

- in /usr/src/sys/pdp/conf.c line 177-183(3), 213
- in /usr/src/sys/pdpuba/ht.c line 81
- in /usr/src/sys/pdpuba/tm.c line 139
- in /usr/src/sys/pdpuba/ts.c line 158
- in /usr/src/sys/sys/ufs_bio.c line 151

B_UBAREMAP defined in line 113; used 6 times

- in /usr/src/sys/pdp/machdep.c line 204, 260, 270
- in /usr/src/sys/pdpuba/hk.c line 835
- in /usr/src/sys/pdpuba/xp.c line 875
- in /usr/src/sys/sys/ufs_bio.c line 376

B_WANTED defined in line 105; used 21 times

- in /usr/src/sys/pdpuba/ht.c line 145, 163
- in /usr/src/sys/pdpuba/rx.c line 416
- in /usr/src/sys/pdpuba/tm.c line 225, 242
- in /usr/src/sys/pdpuba/tmscp.c line 816, 840
- in /usr/src/sys/pdpuba/ts.c line 227, 244
- in /usr/src/sys/sys/ufs_bio.c line 174-177(3), 203, 263, 319, 382, 407
- in /usr/src/sys/sys/ufs_subr.c line 88
- in /usr/src/sys/sys/vm_swp.c line 171, 191, 203

B_WRITE defined in line 98; used 11 times

- in /usr/src/sys/sys/sys_inode.c line 235
- in /usr/src/sys/sys/ufs_disksubr.c line 184
- in /usr/src/sys/sys/ufs_inode.c line 470, 499
- in /usr/src/sys/sys/uipc_syscalls.c line 140
- in /usr/src/sys/sys/vm_swap.c line 112-117(2), 142
- in /usr/src/sys/sys/vm_swp.c line 221
- in /usr/src/sys/sys/vm_text.c line 315, 378

b_actf defined in line 43; used 124 times

- in /usr/src/sys/pdpuba/br.c line 219, 317, 360
- in /usr/src/sys/pdpuba/dr.c line 111-112(2), 129, 162, 196-199(2), 308, 328-332(2)
- in /usr/src/sys/pdpuba/hk.c line 234, 390, 419, 451-452(2), 470-472(2), 479, 517, 562-563(2), 652-658(3), 677
- in /usr/src/sys/pdpuba/ht.c line 183-184(2), 201, 275, 287, 348
- in /usr/src/sys/pdpuba/ra.c line 511, 664-665(2), 676-677(2), 716, 730, 739, 791, 800, 1076-1077(2), 1086-1087(2), 1132-1140(4)
- in /usr/src/sys/pdpuba/rk.c line 103-104(2), 121, 158, 185
- in /usr/src/sys/pdpuba/rl.c line 233, 372-375(2), 390-394(2), 420, 471-474(3), 566-571(3)
- in /usr/src/sys/pdpuba/rx.c line 167-168(2), 183, 236, 269, 325
- in /usr/src/sys/pdpuba/si.c line 181, 237-238(2), 261-264(3), 288, 343-344(2), 375-382(3)
- in /usr/src/sys/pdpuba/tm.c line 281-282(2), 304, 428, 448, 561
- in /usr/src/sys/pdpuba/tmscp.c line 984, 990, 998, 1023, 1144, 1152, 1261-1262(2), 1270-1272(2), 1372-1373(2), 1384-1385(2)
- in /usr/src/sys/pdpuba/ts.c line 267-268(2), 298, 399, 414, 569-572(2)
- in /usr/src/sys/pdpuba/xp.c line 291, 457, 493, 580, 618, 686, 770-775(3)
- in /usr/src/sys/sys/ufs_dsort.c line 24-26(2)

b_active defined in line 46; used 105 times

- in /usr/src/sys/pdpuba/br.c line 204, 222, 314, 358
- in /usr/src/sys/pdpuba/dr.c line 114, 137, 160, 194, 215, 330
- in /usr/src/sys/pdpuba/hk.c line 352-355(2), 378, 392-394(2), 449, 456, 489, 515-518(2), 561, 600, 616, 641-653(5), 677, 813
- in /usr/src/sys/pdpuba/ht.c line 188, 218, 239, 252, 260-264(2), 296-297(2), 326, 355
- in /usr/src/sys/pdpuba/ra.c line 608, 674, 681, 687, 717, 738, 747, 923, 1059, 1084, 1137, 1144
- in /usr/src/sys/pdpuba/rk.c line 108, 123, 152, 159
- in /usr/src/sys/pdpuba/rl.c line 354, 397, 418, 469
- in /usr/src/sys/pdpuba/si.c line 145-147(2), 187-189(2), 271, 286, 335, 360, 372-376(3)
- in /usr/src/sys/pdpuba/tm.c line 290, 342-345(2), 392, 404, 456-457(2), 472-473(2)
- in /usr/src/sys/pdpuba/tmscp.c line 443, 568, 941, 987, 997-1001(2), 1022, 1230, 1266, 1381, 1389-1394(2)
- in /usr/src/sys/pdpuba/ts.c line 276, 320, 355, 374, 424-425(2), 434-435(2)
- in /usr/src/sys/pdpuba/xp.c line 414, 463-465(2), 587, 768

b_actl defined in line 44; used 38 times

- in /usr/src/sys/pdpuba/dr.c line 113
- in /usr/src/sys/pdpuba/hk.c line 454-455(2)
- in /usr/src/sys/pdpuba/ht.c line 186-187(2)
- in /usr/src/sys/pdpuba/ra.c line 667-668(2), 679-680(2), 792-793(2), 1079-1080(2), 1133, 1142-1143(2)
- in /usr/src/sys/pdpuba/rk.c line 106-107(2)
- in /usr/src/sys/pdpuba/rx.c line 170-171(2)
- in /usr/src/sys/pdpuba/si.c line 240-241(2)
- in /usr/src/sys/pdpuba/tm.c line 284-285(2)
- in /usr/src/sys/pdpuba/tmscp.c line 1145-1146(2), 1264-1265(2), 1375-1376(2), 1387-1388(2)
- in /usr/src/sys/pdpuba/ts.c line 270-271(2)
- in /usr/src/sys/sys/ufs_dsort.c line 27, 45-49(3)

b_cylin defined in line 55; used 26 times

- in /usr/src/sys/pdpuba/br.c line 200
- in /usr/src/sys/pdpuba/hk.c line 347, 417, 431-434(3), 526-527(2), 627-628(2), 807
- in /usr/src/sys/pdpuba/rl.c line 351, 577-579(2)
- in /usr/src/sys/pdpuba/si.c line 140, 205
- in /usr/src/sys/pdpuba/xp.c line 410, 490, 513, 771, 841
- in /usr/src/sys/sys/ufs_disksubr.c line 82
- in /usr/src/sys/sys/ufs_dsort.c line 40-41(4)

b_errcnt defined in line 56; used 47 times

- in /usr/src/sys/pdpuba/br.c line 247, 336, 343-344(2), 359
- in /usr/src/sys/pdpuba/dr.c line 195, 331
- in /usr/src/sys/pdpuba/hk.c line 516, 583, 607, 632-635(2), 651-654(2), 902
- in /usr/src/sys/pdpuba/ht.c line 319, 325, 347
- in /usr/src/sys/pdpuba/rk.c line 177, 184
- in /usr/src/sys/pdpuba/rl.c line 426, 436, 449, 470
- in /usr/src/sys/pdpuba/rx.c line 240, 268, 324
- in /usr/src/sys/pdpuba/si.c line 287, 295-296(2), 354, 374
- in /usr/src/sys/pdpuba/tm.c line 386, 427, 505, 560
- in /usr/src/sys/pdpuba/ts.c line 363, 398, 484, 568
- in /usr/src/sys/pdpuba/xp.c line 617, 625-626(2), 733, 755, 762, 769

bawrite defined in line 75; used 4 times

- in /usr/src/sys/sys/sys_inode.c line 297
- in /usr/src/sys/sys/ufs_bio.c line 152, 328
- in /usr/src/sys/sys/ufs_inode.c line 648

bfree defined in line 76; used 2 times

- in /usr/src/sys/sys/ufs_bio.c line 273, 293

bftopaddr defined in line 77; used 3 times

- in /usr/src/sys/pdp/ram.c line 121
- in /usr/src/sys/sys/ufs_inode.c line 640(2)

binshash defined in line 123; used 3 times

- in /usr/src/sys/sys/init_main.c line 291
- in /usr/src/sys/sys/ufs_bio.c line 275, 296

binsheadfree defined in line 137; used 1 times

- in /usr/src/sys/sys/ufs_bio.c line 193

binstailfree defined in line 143; used 1 times

- in /usr/src/sys/sys/ufs_bio.c line 201

bremfree defined in line 133; used 1 times

- in line 156

bremhash defined in line 119; used 2 times

- in /usr/src/sys/sys/ufs_bio.c line 274, 294

iodone defined in line 161; used 38 times

- in /usr/src/sys/pdp/machdep.c line 337
- in /usr/src/sys/pdp/ram.c line 99
- in /usr/src/sys/pdpuba/br.c line 181, 189, 195, 362
- in /usr/src/sys/pdpuba/dr.c line 102, 198, 339
- in /usr/src/sys/pdpuba/hk.c line 363, 520, 657
- in /usr/src/sys/pdpuba/ht.c line 276, 349
- in /usr/src/sys/pdpuba/ra.c line 694, 1089, 1154
- in /usr/src/sys/pdpuba/rk.c line 89, 191
- in /usr/src/sys/pdpuba/rl.c line 361, 480
- in /usr/src/sys/pdpuba/rx.c line 138, 274, 330
- in /usr/src/sys/pdpuba/si.c line 136, 290, 381
- in /usr/src/sys/pdpuba/tm.c line 433, 567
- in /usr/src/sys/pdpuba/tmscp.c line 1274, 1349, 1363, 1839
- in /usr/src/sys/pdpuba/ts.c line 400, 571
- in /usr/src/sys/pdpuba/xp.c line 425, 620, 773

iowait defined in line 162; used 5 times

- in /usr/src/sys/pdpuba/ht.c line 162
- in /usr/src/sys/pdpuba/rx.c line 424
- in /usr/src/sys/pdpuba/tm.c line 241
- in /usr/src/sys/pdpuba/tmscp.c line 838
- in /usr/src/sys/pdpuba/ts.c line 243

notavail defined in line 154; used 5 times

- in /usr/src/sys/sys/ufs_bio.c line 269, 326, 414, 441
- in /usr/src/sys/sys/ufs_subr.c line 95

#### Usage of this include

buf.h used 68 times

- in /usr/src/new/crash/crash.c line 78
- in /usr/src/sys/CURLY/param.c line 11
- in /usr/src/sys/GENERIC/param.c line 11
- in /usr/src/sys/QT/param.c line 11
- in /usr/src/sys/conf/param.c line 11
- in /usr/src/sys/net/if_sl.c line 43
- in /usr/src/sys/netimp/if_imp.c line 20
- in /usr/src/sys/pdp/conf.c line 11
- in /usr/src/sys/pdp/genassym.c line 15
- in /usr/src/sys/pdp/machdep.c line 16
- in /usr/src/sys/pdp/machdep2.c line 19
- in /usr/src/sys/pdp/ram.c line 21
- in /usr/src/sys/pdpif/if_acc.c line 22
- in /usr/src/sys/pdpif/if_css.c line 42
- in /usr/src/sys/pdpif/if_dmc.c line 24
- in /usr/src/sys/pdpif/if_ec.c line 53
- in /usr/src/sys/pdpif/if_en.c line 19
- in /usr/src/sys/pdpif/if_il.c line 34
- in /usr/src/sys/pdpif/if_qe.c line 115
- in /usr/src/sys/pdpif/if_qt.c line 62
- in /usr/src/sys/pdpif/if_sri.c line 19
- in /usr/src/sys/pdpif/if_uba.c line 21
- in /usr/src/sys/pdpif/if_vv.c line 49
- in /usr/src/sys/pdpstand/tmscp.c line 56
- in /usr/src/sys/pdpuba/br.c line 43
- in /usr/src/sys/pdpuba/dkbad.c line 11
- in /usr/src/sys/pdpuba/dr.c line 21
- in /usr/src/sys/pdpuba/hk.c line 37
- in /usr/src/sys/pdpuba/ht.c line 15
- in /usr/src/sys/pdpuba/ra.c line 136
- in /usr/src/sys/pdpuba/rk.c line 18
- in /usr/src/sys/pdpuba/rl.c line 45
- in /usr/src/sys/pdpuba/rx.c line 46
- in /usr/src/sys/pdpuba/si.c line 19
- in /usr/src/sys/pdpuba/tm.c line 16
- in /usr/src/sys/pdpuba/tmscp.c line 252
- in /usr/src/sys/pdpuba/tmscpdump.c line 18
- in /usr/src/sys/pdpuba/ts.c line 16
- in /usr/src/sys/pdpuba/xp.c line 21
- in /usr/src/sys/sys/init_main.c line 20
- in /usr/src/sys/sys/kern_exec.c line 17
- in /usr/src/sys/sys/kern_subr.c line 14
- in /usr/src/sys/sys/kern_synch.c line 14
- in /usr/src/sys/sys/kern_sysctl.c line 47
- in /usr/src/sys/sys/subr_prf.c line 12
- in /usr/src/sys/sys/sys_inode.c line 16
- in /usr/src/sys/sys/tty_tb.c line 24
- in /usr/src/sys/sys/ufs_alloc.c line 15
- in /usr/src/sys/sys/ufs_bio.c line 10
- in /usr/src/sys/sys/ufs_bmap.c line 17
- in /usr/src/sys/sys/ufs_disksubr.c line 47
- in /usr/src/sys/sys/ufs_dsort.c line 15
- in /usr/src/sys/sys/ufs_inode.c line 18
- in /usr/src/sys/sys/ufs_mount.c line 16
- in /usr/src/sys/sys/ufs_namei.c line 17
- in /usr/src/sys/sys/ufs_subr.c line 16
- in /usr/src/sys/sys/ufs_syscalls2.c line 13
- in /usr/src/sys/sys/uipc_socket2.c line 21
- in /usr/src/sys/sys/uipc_syscalls.c line 19
- in /usr/src/sys/sys/vm_swap.c line 16
- in /usr/src/sys/sys/vm_swp.c line 14
- in /usr/src/sys/sys/vm_text.c line 17
- in /usr/src/ucb/PORT/systat/disks.c line 12
- in /usr/src/ucb/PORT/systat/iostat.c line 15
- in /usr/src/ucb/PORT/systat/vmstat.c line 21
- in /usr/src/ucb/vmstat.c line 23
- in /usr/src/usr.bin/iostat.c line 15
- in /usr/src/usr.bin/uucp/acucntrl.c line 49

Last modified: 1996-09-15 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1160 |