|
|
1.1 ! root 1: #ifndef __LOOP_H__ ! 2: #define __LOOP_H__ ! 3: ! 4: /* ! 5: * Definitions for the loop-around driver. ! 6: */ ! 7: ! 8: /* ! 9: * I_STR ioctl () command to connect a pair of streams. ! 10: */ ! 11: ! 12: #define LOOP_SET (('l' << 8) | 1) ! 13: ! 14: ! 15: #if _DDI_DKI ! 16: ! 17: /* ! 18: * Require definitions for queue_t and lock_t. ! 19: */ ! 20: ! 21: #include <sys/ksynch.h> ! 22: #include <sys/stream.h> ! 23: ! 24: ! 25: /* ! 26: * Definitions common to the "Driver.o" and "Space.c" file, for kernel ! 27: * compiles only. ! 28: */ ! 29: ! 30: struct loop { ! 31: queue_t * qptr; /* back pointer to write queue */ ! 32: queue_t * oqptr; /* pointer to connected read queue */ ! 33: lock_t * lck; ! 34: }; ! 35: ! 36: extern struct loop loop_loop []; ! 37: extern int loop_cnt; ! 38: ! 39: #endif /* _DDI_DKI */ ! 40: ! 41: ! 42: #endif /* ! defined (__LOOP_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.