This source file includes following definitions.
- ncp_conn_valid
- ncp_invalidate_conn
1
2
3
4
5
6
7
8 #ifndef _NCP_FS_SB
9 #define _NCP_FS_SB
10
11 #include <linux/ncp_mount.h>
12 #include <linux/types.h>
13
14 #ifdef __KERNEL__
15
16 #define NCP_DEFAULT_BUFSIZE 1024
17
18 struct ncp_server {
19
20 struct ncp_mount_data m;
21
22
23
24 struct file *ncp_filp;
25 struct file *wdog_filp;
26 struct file *msg_filp;
27 void *data_ready;
28
29
30
31
32 u8 sequence;
33 u8 task;
34 u16 connection;
35
36 u8 completion;
37 u8 conn_status;
38
39
40
41 int buffer_size;
42
43 int reply_size;
44
45 int packet_size;
46 unsigned char *packet;
47
48
49 int lock;
50 struct wait_queue *wait;
51
52 int current_size;
53 int has_subfunction;
54 int ncp_reply_size;
55
56 struct ncp_inode_info root;
57 char root_path;
58 };
59
60 static inline int
61 ncp_conn_valid(struct ncp_server *server)
62 {
63 return ((server->conn_status & 0x11) == 0);
64 }
65
66 static inline void
67 ncp_invalidate_conn(struct ncp_server *server)
68 {
69 server->conn_status |= 0x01;
70 }
71
72 #endif
73
74 #endif