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:     char    i_buf[512];
  21: };
  22: 
  23: #define F_READ  01
  24: #define F_WRITE 02
  25: #define F_ALLOC 04
  26: #define F_FILE  010
  27: 
  28: 
  29: 
  30: 
  31: /*
  32:  * dev switch
  33:  */
  34: struct devsw {
  35:     char    *dv_name;
  36:     int (*dv_strategy)();
  37:     int (*dv_open)();
  38:     int (*dv_close)();
  39: };
  40: 
  41: struct devsw devsw[];
  42: 
  43: /*
  44:  * request codes. Must be the same a F_XXX above
  45:  */
  46: #define READ    1
  47: #define WRITE   2
  48: 
  49: 
  50: #define NBUFS   4
  51: 
  52: 
  53: char    b[NBUFS][512];
  54: daddr_t blknos[NBUFS];
  55: 
  56: 
  57: 
  58: #define NFILES  4
  59: struct  iob iob[NFILES];
  60: 
  61: /*
  62:  * Set to which 32Kw segment the code is physically running in.
  63:  * Must be set by the users main (or there abouts).
  64:  */
  65: int segflag;

Defined variables

b defined in line 53; used 2 times
devsw defined in line 41; used 6 times
iob defined in line 59; used 8 times

Defined struct's

devsw defined in line 34; used 6 times
iob defined in line 10; used 48 times

Defined macros

F_ALLOC defined in line 25; used 6 times
F_FILE defined in line 26; used 5 times
F_READ defined in line 23; used 1 times
F_WRITE defined in line 24; used 1 times
NBUFS defined in line 50; used 2 times
NFILES defined in line 58; used 8 times

Usage of this include

Last modified: 1979-01-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 575
Valid CSS Valid XHTML 1.0 Strict