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