blob: d85fddeb6388f54e4293b85e1e64da965c2ebd76 [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
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#include <linux/module.h>
10
11#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#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 */
27EXPORT_SYMBOL(rpc_execute);
28EXPORT_SYMBOL(rpc_init_task);
29EXPORT_SYMBOL(rpc_sleep_on);
30EXPORT_SYMBOL(rpc_wake_up_next);
31EXPORT_SYMBOL(rpc_wake_up_task);
Linus Torvalds1da177e2005-04-16 15:20:36 -070032EXPORT_SYMBOL(rpciod_down);
33EXPORT_SYMBOL(rpciod_up);
34EXPORT_SYMBOL(rpc_new_task);
35EXPORT_SYMBOL(rpc_wake_up_status);
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
37/* RPC client functions */
Linus Torvalds1da177e2005-04-16 15:20:36 -070038EXPORT_SYMBOL(rpc_clone_client);
Andreas Gruenbacher007e2512005-06-22 17:16:23 +000039EXPORT_SYMBOL(rpc_bind_new_program);
Linus Torvalds1da177e2005-04-16 15:20:36 -070040EXPORT_SYMBOL(rpc_destroy_client);
41EXPORT_SYMBOL(rpc_shutdown_client);
Linus Torvalds1da177e2005-04-16 15:20:36 -070042EXPORT_SYMBOL(rpc_killall_tasks);
43EXPORT_SYMBOL(rpc_call_sync);
44EXPORT_SYMBOL(rpc_call_async);
45EXPORT_SYMBOL(rpc_call_setup);
46EXPORT_SYMBOL(rpc_clnt_sigmask);
47EXPORT_SYMBOL(rpc_clnt_sigunmask);
48EXPORT_SYMBOL(rpc_delay);
49EXPORT_SYMBOL(rpc_restart_call);
50EXPORT_SYMBOL(rpc_setbufsize);
51EXPORT_SYMBOL(rpc_unlink);
52EXPORT_SYMBOL(rpc_wake_up);
53EXPORT_SYMBOL(rpc_queue_upcall);
54EXPORT_SYMBOL(rpc_mkpipe);
55
56/* Client transport */
Linus Torvalds1da177e2005-04-16 15:20:36 -070057EXPORT_SYMBOL(xprt_set_timeout);
Linus Torvalds1da177e2005-04-16 15:20:36 -070058
59/* Client credential cache */
60EXPORT_SYMBOL(rpcauth_register);
61EXPORT_SYMBOL(rpcauth_unregister);
62EXPORT_SYMBOL(rpcauth_create);
63EXPORT_SYMBOL(rpcauth_lookupcred);
64EXPORT_SYMBOL(rpcauth_lookup_credcache);
65EXPORT_SYMBOL(rpcauth_free_credcache);
66EXPORT_SYMBOL(rpcauth_init_credcache);
67EXPORT_SYMBOL(put_rpccred);
68
69/* RPC server stuff */
70EXPORT_SYMBOL(svc_create);
71EXPORT_SYMBOL(svc_create_thread);
Greg Banksa7455442006-10-02 02:17:59 -070072EXPORT_SYMBOL(svc_create_pooled);
73EXPORT_SYMBOL(svc_set_num_threads);
Linus Torvalds1da177e2005-04-16 15:20:36 -070074EXPORT_SYMBOL(svc_exit_thread);
75EXPORT_SYMBOL(svc_destroy);
76EXPORT_SYMBOL(svc_drop);
77EXPORT_SYMBOL(svc_process);
78EXPORT_SYMBOL(svc_recv);
79EXPORT_SYMBOL(svc_wake_up);
80EXPORT_SYMBOL(svc_makesock);
81EXPORT_SYMBOL(svc_reserve);
82EXPORT_SYMBOL(svc_auth_register);
83EXPORT_SYMBOL(auth_domain_lookup);
84EXPORT_SYMBOL(svc_authenticate);
85EXPORT_SYMBOL(svc_set_client);
86
87/* RPC statistics */
88#ifdef CONFIG_PROC_FS
89EXPORT_SYMBOL(rpc_proc_register);
90EXPORT_SYMBOL(rpc_proc_unregister);
91EXPORT_SYMBOL(svc_proc_register);
92EXPORT_SYMBOL(svc_proc_unregister);
93EXPORT_SYMBOL(svc_seq_show);
94#endif
95
96/* caching... */
97EXPORT_SYMBOL(auth_domain_find);
98EXPORT_SYMBOL(auth_domain_put);
99EXPORT_SYMBOL(auth_unix_add_addr);
100EXPORT_SYMBOL(auth_unix_forget_old);
101EXPORT_SYMBOL(auth_unix_lookup);
102EXPORT_SYMBOL(cache_check);
103EXPORT_SYMBOL(cache_flush);
104EXPORT_SYMBOL(cache_purge);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105EXPORT_SYMBOL(cache_register);
106EXPORT_SYMBOL(cache_unregister);
107EXPORT_SYMBOL(qword_add);
108EXPORT_SYMBOL(qword_addhex);
109EXPORT_SYMBOL(qword_get);
110EXPORT_SYMBOL(svcauth_unix_purge);
111EXPORT_SYMBOL(unix_domain_find);
112
113/* Generic XDR */
114EXPORT_SYMBOL(xdr_encode_string);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115EXPORT_SYMBOL(xdr_decode_string_inplace);
116EXPORT_SYMBOL(xdr_decode_netobj);
117EXPORT_SYMBOL(xdr_encode_netobj);
118EXPORT_SYMBOL(xdr_encode_pages);
119EXPORT_SYMBOL(xdr_inline_pages);
120EXPORT_SYMBOL(xdr_shift_buf);
Andreas Gruenbacherbd8100e2005-06-22 17:16:24 +0000121EXPORT_SYMBOL(xdr_encode_word);
122EXPORT_SYMBOL(xdr_decode_word);
123EXPORT_SYMBOL(xdr_encode_array2);
124EXPORT_SYMBOL(xdr_decode_array2);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125EXPORT_SYMBOL(xdr_buf_from_iov);
126EXPORT_SYMBOL(xdr_buf_subsegment);
127EXPORT_SYMBOL(xdr_buf_read_netobj);
128EXPORT_SYMBOL(read_bytes_from_xdr_buf);
129
130/* Debugging symbols */
131#ifdef RPC_DEBUG
132EXPORT_SYMBOL(rpc_debug);
133EXPORT_SYMBOL(nfs_debug);
134EXPORT_SYMBOL(nfsd_debug);
135EXPORT_SYMBOL(nlm_debug);
136#endif
137
138extern int register_rpc_pipefs(void);
139extern void unregister_rpc_pipefs(void);
NeilBrownefc36aa2006-03-27 01:14:59 -0800140extern struct cache_detail ip_map_cache;
Chuck Lever282b32e2006-12-05 16:35:51 -0500141extern int init_socket_xprt(void);
142extern void cleanup_socket_xprt(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143
144static int __init
145init_sunrpc(void)
146{
147 int err = register_rpc_pipefs();
148 if (err)
149 goto out;
150 err = rpc_init_mempool() != 0;
151 if (err)
152 goto out;
153#ifdef RPC_DEBUG
154 rpc_register_sysctl();
155#endif
156#ifdef CONFIG_PROC_FS
157 rpc_proc_init();
158#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700159 cache_register(&ip_map_cache);
Chuck Lever282b32e2006-12-05 16:35:51 -0500160 init_socket_xprt();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700161out:
162 return err;
163}
164
165static void __exit
166cleanup_sunrpc(void)
167{
Chuck Lever282b32e2006-12-05 16:35:51 -0500168 cleanup_socket_xprt();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169 unregister_rpc_pipefs();
170 rpc_destroy_mempool();
Bruce Allanf35279d2005-09-06 15:17:08 -0700171 if (cache_unregister(&ip_map_cache))
172 printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173#ifdef RPC_DEBUG
174 rpc_unregister_sysctl();
175#endif
176#ifdef CONFIG_PROC_FS
177 rpc_proc_exit();
178#endif
179}
180MODULE_LICENSE("GPL");
181module_init(init_sunrpc);
182module_exit(cleanup_sunrpc);