patch-2.3.99-pre3 linux/include/linux/sunrpc/clnt.h
Next file: linux/include/linux/sunrpc/sched.h
Previous file: linux/include/linux/sunrpc/auth.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Thu Mar 23 15:37:04 2000
- Orig file:
v2.3.99-pre2/linux/include/linux/sunrpc/clnt.h
- Orig date:
Wed Aug 18 16:45:08 1999
diff -u --recursive --new-file v2.3.99-pre2/linux/include/linux/sunrpc/clnt.h linux/include/linux/sunrpc/clnt.h
@@ -111,21 +111,23 @@
void rpc_getport(struct rpc_task *, struct rpc_clnt *);
int rpc_register(u32, u32, int, unsigned short, int *);
-int rpc_call(struct rpc_clnt *clnt, u32 proc,
- void *argp, void *resp, int flags);
-int rpc_call_async(struct rpc_task *task, u32 proc,
- void *argp, void *resp, int flags);
-void rpc_call_setup(struct rpc_task *task, u32 proc,
- void *argp, void *resp, int flags);
-int rpc_do_call(struct rpc_clnt *clnt, u32 proc,
- void *argp, void *resp, int flags,
- rpc_action callback, void *clntdata);
+void rpc_call_setup(struct rpc_task *, struct rpc_message *, int);
+
+int rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg,
+ int flags, rpc_action callback, void *clntdata);
+int rpc_call_sync(struct rpc_clnt *clnt, struct rpc_message *msg,
+ int flags);
void rpc_restart_call(struct rpc_task *);
void rpc_clnt_sigmask(struct rpc_clnt *clnt, sigset_t *oldset);
void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset);
-#define rpc_call(clnt, proc, argp, resp, flags) \
- rpc_do_call(clnt, proc, argp, resp, flags, NULL, NULL)
+static __inline__
+int rpc_call(struct rpc_clnt *clnt, u32 proc, void *argp, void *resp, int flags)
+{
+ struct rpc_message msg = { proc, argp, resp, NULL };
+ return rpc_call_sync(clnt, &msg, flags);
+}
+
extern __inline__ void
rpc_set_timeout(struct rpc_clnt *clnt, unsigned int retr, unsigned long incr)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)