4 * Copyright (C) 2001 Cluster File Systems, Inc.
6 * This code is issued under the GNU General Public License.
7 * See the file COPYING in this distribution
10 #include <linux/sunrpc/svc.h>
11 #define OBD_TGT_VERSION 001
13 #define OBD_TGT_TCP 0x1
14 #define OBD_TGT_INTR 0x2
15 #define OBD_TGT_SOFT 0x4
18 /* generic wrappable next */
20 #define NEXT_INDEX(index, max) \
21 (((index + 1) >= max) ? 0 : (index + 1))
40 OBDERR_OPNOTSUPP = 45,
45 extern struct rpc_program obd_program;
49 struct sockaddr_in tgt_addr;
60 struct rpc_clnt * handle; /* RPC client handle */
61 struct sockaddr_in addr;
62 int flags; /* various flags */
65 int rsize; /* read size */
66 int wsize; /* write size */
67 unsigned int bsize; /* server block size */
68 char * hostname; /* remote hostname */
72 #define OBD_PROGRAM 300001
74 #define OBDPROC_NULL 0
75 #define OBDPROC_ECHOINT 1
77 #ifdef OBD_NEED_XDR_TYPES
79 struct obd_echoint_in {
83 struct obd_echoint_out {
88 #endif /* OBD_NEED_XDR_TYPES */
91 int obd_proc_echoint(struct rpc_obd *target, __u32 in, __u32 *out);