• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _LINUX_SUNRPC_CLNT_H
20 #define _LINUX_SUNRPC_CLNT_H
21 #include <linux/sunrpc/msg_prot.h>
22 #include <linux/sunrpc/sched.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <linux/sunrpc/xprt.h>
25 #include <linux/sunrpc/auth.h>
26 #include <linux/sunrpc/stats.h>
27 #include <linux/sunrpc/xdr.h>
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #include <linux/sunrpc/timer.h>
30 #include <asm/signal.h>
31 struct rpc_portmap {
32  __u32 pm_prog;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __u32 pm_vers;
35  __u32 pm_prot;
36  __u16 pm_port;
37  unsigned char pm_binding : 1;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  struct rpc_wait_queue pm_bindwait;
40 };
41 struct rpc_inode;
42 struct rpc_clnt {
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  atomic_t cl_count;
45  atomic_t cl_users;
46  struct rpc_xprt * cl_xprt;
47  struct rpc_procinfo * cl_procinfo;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  u32 cl_maxproc;
50  char * cl_server;
51  char * cl_protname;
52  struct rpc_auth * cl_auth;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  struct rpc_stat * cl_stats;
55  struct rpc_iostats * cl_metrics;
56  unsigned int cl_softrtry : 1,
57  cl_intr : 1,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  cl_autobind : 1,
60  cl_oneshot : 1,
61  cl_dead : 1;
62  struct rpc_rtt * cl_rtt;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  struct rpc_portmap * cl_pmap;
65  int cl_nodelen;
66  char cl_nodename[UNX_MAXNODENAME];
67  char cl_pathname[30];
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  struct vfsmount * cl_vfsmnt;
70  struct dentry * cl_dentry;
71  struct rpc_clnt * cl_parent;
72  struct rpc_rtt cl_rtt_default;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  struct rpc_portmap cl_pmap_default;
75  char cl_inline_name[32];
76 };
77 #define cl_timeout cl_xprt->timeout
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define cl_prog cl_pmap->pm_prog
80 #define cl_vers cl_pmap->pm_vers
81 #define cl_port cl_pmap->pm_port
82 #define cl_prot cl_pmap->pm_prot
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define RPC_MAXVERSION 4
85 struct rpc_program {
86  char * name;
87  u32 number;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  unsigned int nrvers;
90  struct rpc_version ** version;
91  struct rpc_stat * stats;
92  char * pipe_dir_name;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 };
95 struct rpc_version {
96  u32 number;
97  unsigned int nrprocs;
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  struct rpc_procinfo * procs;
100 };
101 struct rpc_procinfo {
102  u32 p_proc;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  kxdrproc_t p_encode;
105  kxdrproc_t p_decode;
106  unsigned int p_bufsiz;
107  unsigned int p_count;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  unsigned int p_timer;
110  u32 p_statidx;
111  char * p_name;
112 };
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define RPC_CONGESTED(clnt) (RPCXPRT_CONGESTED((clnt)->cl_xprt))
115 #define RPC_PEERADDR(clnt) (&(clnt)->cl_xprt->addr)
116 #endif
117