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