1: /*
   2:  * header file for standalone package
   3:  */
   4: 
   5: /*
   6:  * io block: includes an
   7:  * inode, cells for the use of seek, etc,
   8:  * and a buffer.
   9:  */
  10: struct  iob {
  11:     char    i_flgs;
  12:     struct inode i_ino;
  13:     int i_unit;
  14:     daddr_t i_boff;
  15:     daddr_t i_cyloff;
  16:     off_t   i_offset;
  17:     daddr_t i_bn;
  18:     char    *i_ma;
  19:     int i_cc;
  20: #ifndef UCB_NKB
  21:     char    i_buf[512];
  22: #else
  23:     char    i_buf[BSIZE];
  24: #endif
  25: };
  26: 
  27: #define F_READ  01
  28: #define F_WRITE 02
  29: #define F_ALLOC 04
  30: #define F_FILE  010
  31: 
  32: 
  33: 
  34: 
  35: /*
  36:  * dev switch
  37:  */
  38: struct devsw {
  39:     char    *dv_name;
  40:     int (*dv_strategy)();
  41:     int (*dv_open)();
  42:     int (*dv_close)();
  43: };
  44: 
  45: struct devsw devsw[];
  46: 
  47: /*
  48:  * request codes. Must be the same a F_XXX above
  49:  */
  50: #define READ    1
  51: #define WRITE   2
  52: 
  53: 
  54: #define NBUFS   4
  55: 
  56: 
  57: #ifndef UCB_NKB
  58: char    b[NBUFS][512];
  59: #else
  60: char    b[NBUFS][BSIZE];
  61: #endif
  62: daddr_t blknos[NBUFS];
  63: 
  64: 
  65: 
  66: #define NFILES  4
  67: struct  iob iob[NFILES];
  68: 
  69: /*
  70:  * Set to which 32Kw segment the code is physically running in.
  71:  * Must be set by the users main (or there abouts).
  72:  */
  73: int segflag;

Defined variables

b defined in line 60; used 3 times
devsw defined in line 45; used 2 times
iob defined in line 67; used 8 times

Defined struct's

devsw defined in line 38; used 4 times

Defined macros

F_ALLOC defined in line 29; used 6 times
F_FILE defined in line 30; used 7 times
F_READ defined in line 27; used 1 times
F_WRITE defined in line 28; used 1 times
NBUFS defined in line 54; used 3 times
NFILES defined in line 66; used 8 times

Usage of this include

Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 844
Valid CSS Valid XHTML 1.0 Strict