diff options
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/svc.h | 9 | ||||
-rw-r--r-- | include/linux/sunrpc/svc_xprt.h | 6 | ||||
-rw-r--r-- | include/linux/sunrpc/xprt.h | 2 |
3 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index d209c630a4a1..2a30775959e9 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
@@ -80,7 +80,6 @@ struct svc_serv { | |||
80 | struct list_head sv_tempsocks; /* all temporary sockets */ | 80 | struct list_head sv_tempsocks; /* all temporary sockets */ |
81 | int sv_tmpcnt; /* count of temporary sockets */ | 81 | int sv_tmpcnt; /* count of temporary sockets */ |
82 | struct timer_list sv_temptimer; /* timer for aging temporary sockets */ | 82 | struct timer_list sv_temptimer; /* timer for aging temporary sockets */ |
83 | sa_family_t sv_family; /* listener's address family */ | ||
84 | 83 | ||
85 | char * sv_name; /* service name */ | 84 | char * sv_name; /* service name */ |
86 | 85 | ||
@@ -400,20 +399,20 @@ struct svc_procedure { | |||
400 | /* | 399 | /* |
401 | * Function prototypes. | 400 | * Function prototypes. |
402 | */ | 401 | */ |
403 | struct svc_serv *svc_create(struct svc_program *, unsigned int, sa_family_t, | 402 | struct svc_serv *svc_create(struct svc_program *, unsigned int, |
404 | void (*shutdown)(struct svc_serv *)); | 403 | void (*shutdown)(struct svc_serv *)); |
405 | struct svc_rqst *svc_prepare_thread(struct svc_serv *serv, | 404 | struct svc_rqst *svc_prepare_thread(struct svc_serv *serv, |
406 | struct svc_pool *pool); | 405 | struct svc_pool *pool); |
407 | void svc_exit_thread(struct svc_rqst *); | 406 | void svc_exit_thread(struct svc_rqst *); |
408 | struct svc_serv * svc_create_pooled(struct svc_program *, unsigned int, | 407 | struct svc_serv * svc_create_pooled(struct svc_program *, unsigned int, |
409 | sa_family_t, void (*shutdown)(struct svc_serv *), | 408 | void (*shutdown)(struct svc_serv *), |
410 | svc_thread_fn, struct module *); | 409 | svc_thread_fn, struct module *); |
411 | int svc_set_num_threads(struct svc_serv *, struct svc_pool *, int); | 410 | int svc_set_num_threads(struct svc_serv *, struct svc_pool *, int); |
412 | int svc_pool_stats_open(struct svc_serv *serv, struct file *file); | 411 | int svc_pool_stats_open(struct svc_serv *serv, struct file *file); |
413 | void svc_destroy(struct svc_serv *); | 412 | void svc_destroy(struct svc_serv *); |
414 | int svc_process(struct svc_rqst *); | 413 | int svc_process(struct svc_rqst *); |
415 | int svc_register(const struct svc_serv *, const unsigned short, | 414 | int svc_register(const struct svc_serv *, const int, |
416 | const unsigned short); | 415 | const unsigned short, const unsigned short); |
417 | 416 | ||
418 | void svc_wake_up(struct svc_serv *); | 417 | void svc_wake_up(struct svc_serv *); |
419 | void svc_reserve(struct svc_rqst *rqstp, int space); | 418 | void svc_reserve(struct svc_rqst *rqstp, int space); |
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index 959b931b6053..0d9cb6ef28b0 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
@@ -71,7 +71,8 @@ int svc_reg_xprt_class(struct svc_xprt_class *); | |||
71 | void svc_unreg_xprt_class(struct svc_xprt_class *); | 71 | void svc_unreg_xprt_class(struct svc_xprt_class *); |
72 | void svc_xprt_init(struct svc_xprt_class *, struct svc_xprt *, | 72 | void svc_xprt_init(struct svc_xprt_class *, struct svc_xprt *, |
73 | struct svc_serv *); | 73 | struct svc_serv *); |
74 | int svc_create_xprt(struct svc_serv *, char *, unsigned short, int); | 74 | int svc_create_xprt(struct svc_serv *, const char *, const int, |
75 | const unsigned short, int); | ||
75 | void svc_xprt_enqueue(struct svc_xprt *xprt); | 76 | void svc_xprt_enqueue(struct svc_xprt *xprt); |
76 | void svc_xprt_received(struct svc_xprt *); | 77 | void svc_xprt_received(struct svc_xprt *); |
77 | void svc_xprt_put(struct svc_xprt *xprt); | 78 | void svc_xprt_put(struct svc_xprt *xprt); |
@@ -80,7 +81,8 @@ void svc_close_xprt(struct svc_xprt *xprt); | |||
80 | void svc_delete_xprt(struct svc_xprt *xprt); | 81 | void svc_delete_xprt(struct svc_xprt *xprt); |
81 | int svc_port_is_privileged(struct sockaddr *sin); | 82 | int svc_port_is_privileged(struct sockaddr *sin); |
82 | int svc_print_xprts(char *buf, int maxlen); | 83 | int svc_print_xprts(char *buf, int maxlen); |
83 | struct svc_xprt *svc_find_xprt(struct svc_serv *, char *, int, int); | 84 | struct svc_xprt *svc_find_xprt(struct svc_serv *serv, const char *xcl_name, |
85 | const sa_family_t af, const unsigned short port); | ||
84 | int svc_xprt_names(struct svc_serv *serv, char *buf, int buflen); | 86 | int svc_xprt_names(struct svc_serv *serv, char *buf, int buflen); |
85 | 87 | ||
86 | static inline void svc_xprt_get(struct svc_xprt *xprt) | 88 | static inline void svc_xprt_get(struct svc_xprt *xprt) |
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 11fc71d50c1e..1758d9f5b5c3 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -235,6 +235,7 @@ static inline __be32 *xprt_skip_transport_header(struct rpc_xprt *xprt, __be32 * | |||
235 | */ | 235 | */ |
236 | int xprt_register_transport(struct xprt_class *type); | 236 | int xprt_register_transport(struct xprt_class *type); |
237 | int xprt_unregister_transport(struct xprt_class *type); | 237 | int xprt_unregister_transport(struct xprt_class *type); |
238 | int xprt_load_transport(const char *); | ||
238 | void xprt_set_retrans_timeout_def(struct rpc_task *task); | 239 | void xprt_set_retrans_timeout_def(struct rpc_task *task); |
239 | void xprt_set_retrans_timeout_rtt(struct rpc_task *task); | 240 | void xprt_set_retrans_timeout_rtt(struct rpc_task *task); |
240 | void xprt_wake_pending_tasks(struct rpc_xprt *xprt, int status); | 241 | void xprt_wake_pending_tasks(struct rpc_xprt *xprt, int status); |
@@ -259,6 +260,7 @@ void xprt_conditional_disconnect(struct rpc_xprt *xprt, unsigned int cookie); | |||
259 | #define XPRT_BOUND (4) | 260 | #define XPRT_BOUND (4) |
260 | #define XPRT_BINDING (5) | 261 | #define XPRT_BINDING (5) |
261 | #define XPRT_CLOSING (6) | 262 | #define XPRT_CLOSING (6) |
263 | #define XPRT_CONNECTION_ABORT (7) | ||
262 | 264 | ||
263 | static inline void xprt_set_connected(struct rpc_xprt *xprt) | 265 | static inline void xprt_set_connected(struct rpc_xprt *xprt) |
264 | { | 266 | { |