]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* |
2 | * linux/net/sunrpc/sunrpc_syms.c | |
3 | * | |
4 | * Symbols exported by the sunrpc module. | |
5 | * | |
6 | * Copyright (C) 1997 Olaf Kirch <okir@monad.swb.de> | |
7 | */ | |
8 | ||
1da177e4 LT |
9 | #include <linux/module.h> |
10 | ||
11 | #include <linux/types.h> | |
1da177e4 LT |
12 | #include <linux/sched.h> |
13 | #include <linux/uio.h> | |
14 | #include <linux/unistd.h> | |
15 | #include <linux/init.h> | |
16 | ||
17 | #include <linux/sunrpc/sched.h> | |
18 | #include <linux/sunrpc/clnt.h> | |
19 | #include <linux/sunrpc/svc.h> | |
20 | #include <linux/sunrpc/svcsock.h> | |
21 | #include <linux/sunrpc/auth.h> | |
22 | #include <linux/workqueue.h> | |
23 | #include <linux/sunrpc/rpc_pipe_fs.h> | |
24 | ||
25 | ||
26 | /* RPC scheduler */ | |
27 | EXPORT_SYMBOL(rpc_execute); | |
28 | EXPORT_SYMBOL(rpc_init_task); | |
29 | EXPORT_SYMBOL(rpc_sleep_on); | |
30 | EXPORT_SYMBOL(rpc_wake_up_next); | |
31 | EXPORT_SYMBOL(rpc_wake_up_task); | |
1da177e4 LT |
32 | EXPORT_SYMBOL(rpciod_down); |
33 | EXPORT_SYMBOL(rpciod_up); | |
34 | EXPORT_SYMBOL(rpc_new_task); | |
35 | EXPORT_SYMBOL(rpc_wake_up_status); | |
1da177e4 LT |
36 | |
37 | /* RPC client functions */ | |
1da177e4 | 38 | EXPORT_SYMBOL(rpc_clone_client); |
007e251f | 39 | EXPORT_SYMBOL(rpc_bind_new_program); |
1da177e4 LT |
40 | EXPORT_SYMBOL(rpc_destroy_client); |
41 | EXPORT_SYMBOL(rpc_shutdown_client); | |
1da177e4 LT |
42 | EXPORT_SYMBOL(rpc_killall_tasks); |
43 | EXPORT_SYMBOL(rpc_call_sync); | |
44 | EXPORT_SYMBOL(rpc_call_async); | |
45 | EXPORT_SYMBOL(rpc_call_setup); | |
46 | EXPORT_SYMBOL(rpc_clnt_sigmask); | |
47 | EXPORT_SYMBOL(rpc_clnt_sigunmask); | |
48 | EXPORT_SYMBOL(rpc_delay); | |
49 | EXPORT_SYMBOL(rpc_restart_call); | |
50 | EXPORT_SYMBOL(rpc_setbufsize); | |
51 | EXPORT_SYMBOL(rpc_unlink); | |
52 | EXPORT_SYMBOL(rpc_wake_up); | |
53 | EXPORT_SYMBOL(rpc_queue_upcall); | |
54 | EXPORT_SYMBOL(rpc_mkpipe); | |
55 | ||
56 | /* Client transport */ | |
1da177e4 | 57 | EXPORT_SYMBOL(xprt_set_timeout); |
1da177e4 LT |
58 | |
59 | /* Client credential cache */ | |
60 | EXPORT_SYMBOL(rpcauth_register); | |
61 | EXPORT_SYMBOL(rpcauth_unregister); | |
62 | EXPORT_SYMBOL(rpcauth_create); | |
63 | EXPORT_SYMBOL(rpcauth_lookupcred); | |
64 | EXPORT_SYMBOL(rpcauth_lookup_credcache); | |
65 | EXPORT_SYMBOL(rpcauth_free_credcache); | |
66 | EXPORT_SYMBOL(rpcauth_init_credcache); | |
67 | EXPORT_SYMBOL(put_rpccred); | |
68 | ||
69 | /* RPC server stuff */ | |
70 | EXPORT_SYMBOL(svc_create); | |
71 | EXPORT_SYMBOL(svc_create_thread); | |
a7455442 GB |
72 | EXPORT_SYMBOL(svc_create_pooled); |
73 | EXPORT_SYMBOL(svc_set_num_threads); | |
1da177e4 LT |
74 | EXPORT_SYMBOL(svc_exit_thread); |
75 | EXPORT_SYMBOL(svc_destroy); | |
76 | EXPORT_SYMBOL(svc_drop); | |
77 | EXPORT_SYMBOL(svc_process); | |
78 | EXPORT_SYMBOL(svc_recv); | |
79 | EXPORT_SYMBOL(svc_wake_up); | |
80 | EXPORT_SYMBOL(svc_makesock); | |
81 | EXPORT_SYMBOL(svc_reserve); | |
82 | EXPORT_SYMBOL(svc_auth_register); | |
83 | EXPORT_SYMBOL(auth_domain_lookup); | |
84 | EXPORT_SYMBOL(svc_authenticate); | |
85 | EXPORT_SYMBOL(svc_set_client); | |
86 | ||
87 | /* RPC statistics */ | |
88 | #ifdef CONFIG_PROC_FS | |
89 | EXPORT_SYMBOL(rpc_proc_register); | |
90 | EXPORT_SYMBOL(rpc_proc_unregister); | |
91 | EXPORT_SYMBOL(svc_proc_register); | |
92 | EXPORT_SYMBOL(svc_proc_unregister); | |
93 | EXPORT_SYMBOL(svc_seq_show); | |
94 | #endif | |
95 | ||
96 | /* caching... */ | |
97 | EXPORT_SYMBOL(auth_domain_find); | |
98 | EXPORT_SYMBOL(auth_domain_put); | |
99 | EXPORT_SYMBOL(auth_unix_add_addr); | |
100 | EXPORT_SYMBOL(auth_unix_forget_old); | |
101 | EXPORT_SYMBOL(auth_unix_lookup); | |
102 | EXPORT_SYMBOL(cache_check); | |
103 | EXPORT_SYMBOL(cache_flush); | |
104 | EXPORT_SYMBOL(cache_purge); | |
1da177e4 LT |
105 | EXPORT_SYMBOL(cache_register); |
106 | EXPORT_SYMBOL(cache_unregister); | |
107 | EXPORT_SYMBOL(qword_add); | |
108 | EXPORT_SYMBOL(qword_addhex); | |
109 | EXPORT_SYMBOL(qword_get); | |
110 | EXPORT_SYMBOL(svcauth_unix_purge); | |
111 | EXPORT_SYMBOL(unix_domain_find); | |
112 | ||
113 | /* Generic XDR */ | |
114 | EXPORT_SYMBOL(xdr_encode_string); | |
1da177e4 LT |
115 | EXPORT_SYMBOL(xdr_decode_string_inplace); |
116 | EXPORT_SYMBOL(xdr_decode_netobj); | |
117 | EXPORT_SYMBOL(xdr_encode_netobj); | |
118 | EXPORT_SYMBOL(xdr_encode_pages); | |
119 | EXPORT_SYMBOL(xdr_inline_pages); | |
120 | EXPORT_SYMBOL(xdr_shift_buf); | |
bd8100e7 AG |
121 | EXPORT_SYMBOL(xdr_encode_word); |
122 | EXPORT_SYMBOL(xdr_decode_word); | |
123 | EXPORT_SYMBOL(xdr_encode_array2); | |
124 | EXPORT_SYMBOL(xdr_decode_array2); | |
1da177e4 LT |
125 | EXPORT_SYMBOL(xdr_buf_from_iov); |
126 | EXPORT_SYMBOL(xdr_buf_subsegment); | |
127 | EXPORT_SYMBOL(xdr_buf_read_netobj); | |
128 | EXPORT_SYMBOL(read_bytes_from_xdr_buf); | |
129 | ||
130 | /* Debugging symbols */ | |
131 | #ifdef RPC_DEBUG | |
132 | EXPORT_SYMBOL(rpc_debug); | |
133 | EXPORT_SYMBOL(nfs_debug); | |
134 | EXPORT_SYMBOL(nfsd_debug); | |
135 | EXPORT_SYMBOL(nlm_debug); | |
136 | #endif | |
137 | ||
138 | extern int register_rpc_pipefs(void); | |
139 | extern void unregister_rpc_pipefs(void); | |
efc36aa5 | 140 | extern struct cache_detail ip_map_cache; |
1da177e4 LT |
141 | |
142 | static int __init | |
143 | init_sunrpc(void) | |
144 | { | |
145 | int err = register_rpc_pipefs(); | |
146 | if (err) | |
147 | goto out; | |
148 | err = rpc_init_mempool() != 0; | |
149 | if (err) | |
150 | goto out; | |
151 | #ifdef RPC_DEBUG | |
152 | rpc_register_sysctl(); | |
153 | #endif | |
154 | #ifdef CONFIG_PROC_FS | |
155 | rpc_proc_init(); | |
156 | #endif | |
1da177e4 LT |
157 | cache_register(&ip_map_cache); |
158 | out: | |
159 | return err; | |
160 | } | |
161 | ||
162 | static void __exit | |
163 | cleanup_sunrpc(void) | |
164 | { | |
165 | unregister_rpc_pipefs(); | |
166 | rpc_destroy_mempool(); | |
f35279d3 BA |
167 | if (cache_unregister(&ip_map_cache)) |
168 | printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n"); | |
1da177e4 LT |
169 | #ifdef RPC_DEBUG |
170 | rpc_unregister_sysctl(); | |
171 | #endif | |
172 | #ifdef CONFIG_PROC_FS | |
173 | rpc_proc_exit(); | |
174 | #endif | |
175 | } | |
176 | MODULE_LICENSE("GPL"); | |
177 | module_init(init_sunrpc); | |
178 | module_exit(cleanup_sunrpc); |