aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/clnt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sunrpc/clnt.h')
-rw-r--r--include/linux/sunrpc/clnt.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index a26d69583c7a..7817ba82f1b2 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -97,6 +97,28 @@ struct rpc_clnt *rpc_create_client(struct rpc_xprt *xprt, char *servname,
97struct rpc_clnt *rpc_new_client(struct rpc_xprt *xprt, char *servname, 97struct rpc_clnt *rpc_new_client(struct rpc_xprt *xprt, char *servname,
98 struct rpc_program *info, 98 struct rpc_program *info,
99 u32 version, rpc_authflavor_t authflavor); 99 u32 version, rpc_authflavor_t authflavor);
100
101struct rpc_create_args {
102 int protocol;
103 struct sockaddr *address;
104 size_t addrsize;
105 struct rpc_timeout *timeout;
106 char *servername;
107 struct rpc_program *program;
108 u32 version;
109 rpc_authflavor_t authflavor;
110 unsigned long flags;
111};
112
113/* Values for "flags" field */
114#define RPC_CLNT_CREATE_HARDRTRY (1UL << 0)
115#define RPC_CLNT_CREATE_INTR (1UL << 1)
116#define RPC_CLNT_CREATE_AUTOBIND (1UL << 2)
117#define RPC_CLNT_CREATE_ONESHOT (1UL << 3)
118#define RPC_CLNT_CREATE_NONPRIVPORT (1UL << 4)
119#define RPC_CLNT_CREATE_NOPING (1UL << 5)
120
121struct rpc_clnt *rpc_create(struct rpc_create_args *args);
100struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, 122struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *,
101 struct rpc_program *, int); 123 struct rpc_program *, int);
102struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); 124struct rpc_clnt *rpc_clone_client(struct rpc_clnt *);