dafs-kill-xcpu-dump-vlru-stats-20080318
[openafs.git] / src / WINNT / afsrdr / afsrdr.h
1 /* copyright (c) 2005
2  * the regents of the university of michigan
3  * all rights reserved
4  * 
5  * permission is granted to use, copy, create derivative works and
6  * redistribute this software and such derivative works for any purpose,
7  * so long as the name of the university of michigan is not used in
8  * any advertising or publicity pertaining to the use or distribution
9  * of this software without specific, written prior authorization.  if
10  * the above copyright notice or any other identification of the
11  * university of michigan is included in any copy of any portion of
12  * this software, then the disclaimer below must also be included.
13  * 
14  * this software is provided as is, without representation from the
15  * university of michigan as to its fitness for any purpose, and without
16  * warranty by the university of michigan of any kind, either express 
17  * or implied, including without limitation the implied warranties of
18  * merchantability and fitness for a particular purpose.  the regents
19  * of the university of michigan shall not be liable for any damages,   
20  * including special, indirect, incidental, or consequential damages, 
21  * with respect to any claim arising out or in connection with the use
22  * of the software, even if it has been or is hereafter advised of the
23  * possibility of such damages.
24  */
25
26 /* versioning history
27  * 
28  * 03-jun 2005 (eric williams) entered into versioning
29  */
30
31 #include <ntifs.h>
32
33 #define rpt0(args) 
34 #define rpt1(args) 
35 #define rpt2(args) 
36 #define rpt3(args) 
37 #define rpt4(args) 
38 #define rpt5(args) 
39
40 struct AfsRdrExtension
41 {
42 struct ComExtension *com;
43 PNOTIFY_SYNC notifyList;
44 LIST_ENTRY listHead;
45 NPAGED_LOOKASIDE_LIST fcbMemList;
46 FAST_MUTEX fcbLock;
47 NPAGED_LOOKASIDE_LIST ccbMemList;
48 RTL_GENERIC_TABLE fcbTable;
49 CACHE_MANAGER_CALLBACKS callbacks;
50 };
51
52 struct ComExtension
53 {
54 struct AfsRdrExtension *rdr;
55 LIST_ENTRY outReqList;
56 KSPIN_LOCK outLock;
57 FAST_MUTEX inLock;
58 KEVENT outEvent, cancelEvent;
59 };
60
61 extern struct AfsRdrExtension *rdrExt;
62 extern struct ComExtension *comExt;
63
64
65 void ifs_lock_rpcs();
66 void ifs_unlock_rpcs();