blob: 769114f0f886972ec99ef3a4bf904497cd0cf27a [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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070033EXPORT_SYMBOL(rpciod_down);
34EXPORT_SYMBOL(rpciod_up);
35EXPORT_SYMBOL(rpc_new_task);
36EXPORT_SYMBOL(rpc_wake_up_status);
37EXPORT_SYMBOL(rpc_release_task);
38
39/* RPC client functions */
40EXPORT_SYMBOL(rpc_create_client);
NeilBrown5ba266d2005-06-23 22:03:15 -070041EXPORT_SYMBOL(rpc_new_client);
Linus Torvalds1da177e2005-04-16 15:20:36 -070042EXPORT_SYMBOL(rpc_clone_client);
Andreas Gruenbacher007e2512005-06-22 17:16:23 +000043EXPORT_SYMBOL(rpc_bind_new_program);
Linus Torvalds1da177e2005-04-16 15:20:36 -070044EXPORT_SYMBOL(rpc_destroy_client);
45EXPORT_SYMBOL(rpc_shutdown_client);
Linus Torvalds1da177e2005-04-16 15:20:36 -070046EXPORT_SYMBOL(rpc_killall_tasks);
47EXPORT_SYMBOL(rpc_call_sync);
48EXPORT_SYMBOL(rpc_call_async);
49EXPORT_SYMBOL(rpc_call_setup);
50EXPORT_SYMBOL(rpc_clnt_sigmask);
51EXPORT_SYMBOL(rpc_clnt_sigunmask);
52EXPORT_SYMBOL(rpc_delay);
53EXPORT_SYMBOL(rpc_restart_call);
54EXPORT_SYMBOL(rpc_setbufsize);
55EXPORT_SYMBOL(rpc_unlink);
56EXPORT_SYMBOL(rpc_wake_up);
57EXPORT_SYMBOL(rpc_queue_upcall);
58EXPORT_SYMBOL(rpc_mkpipe);
59
60/* Client transport */
61EXPORT_SYMBOL(xprt_create_proto);
Linus Torvalds1da177e2005-04-16 15:20:36 -070062EXPORT_SYMBOL(xprt_set_timeout);
Linus Torvalds1da177e2005-04-16 15:20:36 -070063
64/* Client credential cache */
65EXPORT_SYMBOL(rpcauth_register);
66EXPORT_SYMBOL(rpcauth_unregister);
67EXPORT_SYMBOL(rpcauth_create);
68EXPORT_SYMBOL(rpcauth_lookupcred);
69EXPORT_SYMBOL(rpcauth_lookup_credcache);
70EXPORT_SYMBOL(rpcauth_free_credcache);
71EXPORT_SYMBOL(rpcauth_init_credcache);
72EXPORT_SYMBOL(put_rpccred);
73
74/* RPC server stuff */
75EXPORT_SYMBOL(svc_create);
76EXPORT_SYMBOL(svc_create_thread);
77EXPORT_SYMBOL(svc_exit_thread);
78EXPORT_SYMBOL(svc_destroy);
79EXPORT_SYMBOL(svc_drop);
80EXPORT_SYMBOL(svc_process);
81EXPORT_SYMBOL(svc_recv);
82EXPORT_SYMBOL(svc_wake_up);
83EXPORT_SYMBOL(svc_makesock);
84EXPORT_SYMBOL(svc_reserve);
85EXPORT_SYMBOL(svc_auth_register);
86EXPORT_SYMBOL(auth_domain_lookup);
87EXPORT_SYMBOL(svc_authenticate);
88EXPORT_SYMBOL(svc_set_client);
89
90/* RPC statistics */
91#ifdef CONFIG_PROC_FS
92EXPORT_SYMBOL(rpc_proc_register);
93EXPORT_SYMBOL(rpc_proc_unregister);
94EXPORT_SYMBOL(svc_proc_register);
95EXPORT_SYMBOL(svc_proc_unregister);
96EXPORT_SYMBOL(svc_seq_show);
97#endif
98
99/* caching... */
100EXPORT_SYMBOL(auth_domain_find);
101EXPORT_SYMBOL(auth_domain_put);
102EXPORT_SYMBOL(auth_unix_add_addr);
103EXPORT_SYMBOL(auth_unix_forget_old);
104EXPORT_SYMBOL(auth_unix_lookup);
105EXPORT_SYMBOL(cache_check);
106EXPORT_SYMBOL(cache_flush);
107EXPORT_SYMBOL(cache_purge);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108EXPORT_SYMBOL(cache_register);
109EXPORT_SYMBOL(cache_unregister);
110EXPORT_SYMBOL(qword_add);
111EXPORT_SYMBOL(qword_addhex);
112EXPORT_SYMBOL(qword_get);
113EXPORT_SYMBOL(svcauth_unix_purge);
114EXPORT_SYMBOL(unix_domain_find);
115
116/* Generic XDR */
117EXPORT_SYMBOL(xdr_encode_string);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118EXPORT_SYMBOL(xdr_decode_string_inplace);
119EXPORT_SYMBOL(xdr_decode_netobj);
120EXPORT_SYMBOL(xdr_encode_netobj);
121EXPORT_SYMBOL(xdr_encode_pages);
122EXPORT_SYMBOL(xdr_inline_pages);
123EXPORT_SYMBOL(xdr_shift_buf);
Andreas Gruenbacherbd8100e2005-06-22 17:16:24 +0000124EXPORT_SYMBOL(xdr_encode_word);
125EXPORT_SYMBOL(xdr_decode_word);
126EXPORT_SYMBOL(xdr_encode_array2);
127EXPORT_SYMBOL(xdr_decode_array2);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128EXPORT_SYMBOL(xdr_buf_from_iov);
129EXPORT_SYMBOL(xdr_buf_subsegment);
130EXPORT_SYMBOL(xdr_buf_read_netobj);
131EXPORT_SYMBOL(read_bytes_from_xdr_buf);
132
133/* Debugging symbols */
134#ifdef RPC_DEBUG
135EXPORT_SYMBOL(rpc_debug);
136EXPORT_SYMBOL(nfs_debug);
137EXPORT_SYMBOL(nfsd_debug);
138EXPORT_SYMBOL(nlm_debug);
139#endif
140
141extern int register_rpc_pipefs(void);
142extern void unregister_rpc_pipefs(void);
NeilBrownefc36aa2006-03-27 01:14:59 -0800143extern struct cache_detail ip_map_cache;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700144
145static int __init
146init_sunrpc(void)
147{
148 int err = register_rpc_pipefs();
149 if (err)
150 goto out;
151 err = rpc_init_mempool() != 0;
152 if (err)
153 goto out;
154#ifdef RPC_DEBUG
155 rpc_register_sysctl();
156#endif
157#ifdef CONFIG_PROC_FS
158 rpc_proc_init();
159#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160 cache_register(&ip_map_cache);
161out:
162 return err;
163}
164
165static void __exit
166cleanup_sunrpc(void)
167{
168 unregister_rpc_pipefs();
169 rpc_destroy_mempool();
Bruce Allanf35279d2005-09-06 15:17:08 -0700170 if (cache_unregister(&ip_map_cache))
171 printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700172#ifdef RPC_DEBUG
173 rpc_unregister_sysctl();
174#endif
175#ifdef CONFIG_PROC_FS
176 rpc_proc_exit();
177#endif
178}
179MODULE_LICENSE("GPL");
180module_init(init_sunrpc);
181module_exit(cleanup_sunrpc);