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