|
|
1.1 root 1: /*++
2:
3: Copyright (c) 1991 Microsoft Corporation
4:
5: Module Name:
6:
7: insulate.h
8:
9: Abstract:
10:
11: This is the private (internal) header file for the insulator modules for
12: subsystem-parallel STREAMS stacks.
13:
14: Note that the each module has to be customized for each subsystem-parallel
15: stack: the subsystem id of each module has to be changed.
16:
17: --*/
18: #ifndef _INSULATE_
19: #define _INSULATE_
20:
21:
22: //
23: // NT "System" Headers
24: //
25: #include <ntddk.h>
26:
27:
28: //
29: // Regular STREAMS "System" Headers
30: //
31: #include <sys/types.h>
32: #include <stream.h>
33: #include <stropts.h>
34: #include <sysmacro.h>
35: #include <errno.h>
36:
37:
38:
39:
40: //
41: // Private (internal) Constant Definitions
42: //
43: #define EXTOP_STID 11 /* module id */
44: #define EXTOP_NAME "extop" /* module name */
45:
46: #define INSTOP_STID 12 /* module id */
47: #define INSTOP_NAME "instop" /* module name */
48:
49: #define INSBOT_STID 23 /* module id */
50: #define INSBOT_NAME "insbot" /* module name */
51:
52: #define EXBOT_STID 24 /* module id */
53: #define EXBOT_NAME "exbot" /* module name */
54:
55: #define TCPIP_SUBSYSTEM_ID 32768
56:
57:
58: //
59: // Private (internal) Variables
60: //
61: extern struct streamtab exbotinfo;
62: extern struct streamtab extopinfo;
63: extern struct streamtab inbotinfo;
64: extern struct streamtab intopinfo;
65:
66:
67:
68: //
69: // STREAMS Procedure Declarations
70: // ------------------------------
71: // A STREAMS module has an open and a close procedure. Each module has two
72: // queues: a read queue and a write queue. Each queue must have a put
73: // procedure, and may have a service procedure.
74: //
75: //
76: int
77: insrsrv(
78: IN queue_t *rq
79: );
80:
81: int
82: inswsrv(
83: IN queue_t *wq
84: );
85:
86: int
87: noclose(
88: IN queue_t *rq,
89: IN int flag,
90: IN void *credp
91: );
92:
93: int
94: noopen(
95: IN queue_t *rq,
96: IN dev_t *dev,
97: IN int flag,
98: IN int sflag,
99: IN void *credp
100: );
101:
102:
103:
104: #endif // _INSULATE_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.