diff options
Diffstat (limited to 'include/net/9p/client.h')
-rw-r--r-- | include/net/9p/client.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index c936dd14de41..c35fb548e7cf 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h | |||
@@ -27,6 +27,22 @@ | |||
27 | #define NET_9P_CLIENT_H | 27 | #define NET_9P_CLIENT_H |
28 | 28 | ||
29 | /** | 29 | /** |
30 | * enum p9_trans_status - different states of underlying transports | ||
31 | * @Connected: transport is connected and healthy | ||
32 | * @Disconnected: transport has been disconnected | ||
33 | * @Hung: transport is connected by wedged | ||
34 | * | ||
35 | * This enumeration details the various states a transport | ||
36 | * instatiation can be in. | ||
37 | */ | ||
38 | |||
39 | enum p9_trans_status { | ||
40 | Connected, | ||
41 | Disconnected, | ||
42 | Hung, | ||
43 | }; | ||
44 | |||
45 | /** | ||
30 | * struct p9_client - per client instance state | 46 | * struct p9_client - per client instance state |
31 | * @lock: protect @fidlist | 47 | * @lock: protect @fidlist |
32 | * @msize: maximum data size negotiated by protocol | 48 | * @msize: maximum data size negotiated by protocol |
@@ -48,7 +64,8 @@ struct p9_client { | |||
48 | int msize; | 64 | int msize; |
49 | unsigned char dotu; | 65 | unsigned char dotu; |
50 | struct p9_trans_module *trans_mod; | 66 | struct p9_trans_module *trans_mod; |
51 | struct p9_trans *trans; | 67 | enum p9_trans_status status; |
68 | void *trans; | ||
52 | struct p9_conn *conn; | 69 | struct p9_conn *conn; |
53 | 70 | ||
54 | struct p9_idpool *fidpool; | 71 | struct p9_idpool *fidpool; |