|
|
1.1 ! root 1: /* ! 2: * one dkmodule per hardware interface to datakit ! 3: * a given hardware device == (major device, range of minor devices) ! 4: * channel 0 == (dev, lo) ! 5: * there are hi-lo channels ! 6: */ ! 7: ! 8: struct dkmodule { ! 9: char *dkstate; /* open/closed status of channels */ ! 10: struct queue *listnrq; /* channel to controller */ ! 11: short dev; /* major device of datakit interface */ ! 12: short lo, hi; /* range of devs on this controller */ ! 13: short type; /* type of listener */ ! 14: }; ! 15: ! 16: #ifdef KERNEL ! 17: struct dkmodule *dkmodall(), *getdkmod(); ! 18: #endif ! 19: ! 20: /* ! 21: * channel states ! 22: */ ! 23: #define DKCLOSED 0 ! 24: #define DKRCLOSE 1 /* remote hung up, local still around */ ! 25: #define DKLCLOSE 2 /* closed locally, CMC hasn't acked yet */ ! 26: #define DKOPEN 3 /* in use */ ! 27: ! 28: /* ! 29: * listener types ! 30: */ ! 31: #define CMCLD 'c' ! 32: #define UNIXPLD 'u' ! 33: ! 34: /* ! 35: * M_PRICTL messages contain ! 36: * one byte of subtype ! 37: * perhaps another byte of channel number ! 38: */ ! 39: ! 40: #define DKMCLOSE 0 /* this channel is closing */ ! 41: #define DKMXINIT 01 /* re-init URP because of splice */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.