4 #define OBD_TGT_VERSION 001
6 #define OBD_TGT_TCP 0x1
7 #define OBD_TGT_INTR 0x2
8 #define OBD_TGT_SOFT 0x4
29 OBDERR_OPNOTSUPP = 45,
34 extern struct rpc_program obd_program;
38 struct sockaddr_in tgt_addr;
49 struct rpc_clnt * handle; /* RPC client handle */
50 struct sockaddr_in addr;
51 int flags; /* various flags */
54 int rsize; /* read size */
55 int wsize; /* write size */
56 unsigned int bsize; /* server block size */
57 char * hostname; /* remote hostname */
61 #define OBD_PROGRAM 300001
63 #define OBDPROC_NULL 0
64 #define OBDPROC_ECHOINT 1
66 #ifdef OBD_NEED_XDR_TYPES
68 struct obd_echoint_in {
72 struct obd_echoint_out {
77 #endif /* OBD_NEED_XDR_TYPES */
80 int obd_proc_echoint(struct rpc_obd *target, __u32 in, __u32 *out);