diff options
Diffstat (limited to 'include/linux/sunrpc/xprt.h')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 3a0cca255b76..a71106723d71 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -269,6 +269,7 @@ int xs_setup_tcp(struct rpc_xprt *xprt, struct rpc_timeout *to); | |||
269 | #define XPRT_CONNECTED (1) | 269 | #define XPRT_CONNECTED (1) |
270 | #define XPRT_CONNECTING (2) | 270 | #define XPRT_CONNECTING (2) |
271 | #define XPRT_CLOSE_WAIT (3) | 271 | #define XPRT_CLOSE_WAIT (3) |
272 | #define XPRT_BOUND (4) | ||
272 | 273 | ||
273 | static inline void xprt_set_connected(struct rpc_xprt *xprt) | 274 | static inline void xprt_set_connected(struct rpc_xprt *xprt) |
274 | { | 275 | { |
@@ -312,6 +313,21 @@ static inline int xprt_test_and_set_connecting(struct rpc_xprt *xprt) | |||
312 | return test_and_set_bit(XPRT_CONNECTING, &xprt->state); | 313 | return test_and_set_bit(XPRT_CONNECTING, &xprt->state); |
313 | } | 314 | } |
314 | 315 | ||
316 | static inline void xprt_set_bound(struct rpc_xprt *xprt) | ||
317 | { | ||
318 | test_and_set_bit(XPRT_BOUND, &xprt->state); | ||
319 | } | ||
320 | |||
321 | static inline int xprt_bound(struct rpc_xprt *xprt) | ||
322 | { | ||
323 | return test_bit(XPRT_BOUND, &xprt->state); | ||
324 | } | ||
325 | |||
326 | static inline void xprt_clear_bound(struct rpc_xprt *xprt) | ||
327 | { | ||
328 | clear_bit(XPRT_BOUND, &xprt->state); | ||
329 | } | ||
330 | |||
315 | #endif /* __KERNEL__*/ | 331 | #endif /* __KERNEL__*/ |
316 | 332 | ||
317 | #endif /* _LINUX_SUNRPC_XPRT_H */ | 333 | #endif /* _LINUX_SUNRPC_XPRT_H */ |