1: #include "param.h"
   2: #include <sys/buf.h>
   3: 
   4: /*
   5:  *	SCCS id	@(#)dkleave.c	2.1 (Berkeley)	8/5/83
   6:  */
   7: 
   8: #ifdef  INTRLVE
   9: 
  10: daddr_t
  11: dkblock(bp)
  12: register struct buf *bp;
  13: {
  14:     register int dminor;
  15: 
  16:     if (((dminor=minor(bp->b_dev))&0100) == 0)
  17:         return(bp->b_blkno);
  18:     dminor >>= 3;
  19:     dminor &= 07;
  20:     dminor++;
  21:     return(bp->b_blkno/dminor);
  22: }
  23: 
  24: dkunit(bp)
  25: register struct buf *bp;
  26: {
  27:     register int dminor;
  28: 
  29:     dminor = minor(bp->b_dev) >> 3;
  30:     if ((dminor&010) == 0)
  31:         return(dminor);
  32:     dminor &= 07;
  33:     dminor++;
  34:     return(bp->b_blkno%dminor);
  35: }
  36: 
  37: #endif	INTRLVE

Defined functions

dkblock defined in line 10; never used
dkunit defined in line 24; never used
Last modified: 1983-08-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 684
Valid CSS Valid XHTML 1.0 Strict