]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - net/sunrpc/sunrpc_syms.c
[PATCH] RPC: transport switch function naming
[mirror_ubuntu-bionic-kernel.git] / net / sunrpc / sunrpc_syms.c
CommitLineData
1da177e4
LT
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/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);
5ba266d6 44EXPORT_SYMBOL(rpc_new_client);
1da177e4 45EXPORT_SYMBOL(rpc_clone_client);
007e251f 46EXPORT_SYMBOL(rpc_bind_new_program);
1da177e4
LT
47EXPORT_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);
1da177e4
LT
66EXPORT_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);
bd8100e7
AG
133EXPORT_SYMBOL(xdr_encode_word);
134EXPORT_SYMBOL(xdr_decode_word);
135EXPORT_SYMBOL(xdr_encode_array2);
136EXPORT_SYMBOL(xdr_decode_array2);
1da177e4
LT
137EXPORT_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();
f35279d3
BA
179 if (cache_unregister(&auth_domain_cache))
180 printk(KERN_ERR "sunrpc: failed to unregister auth_domain cache\n");
181 if (cache_unregister(&ip_map_cache))
182 printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n");
1da177e4
LT
183#ifdef RPC_DEBUG
184 rpc_unregister_sysctl();
185#endif
186#ifdef CONFIG_PROC_FS
187 rpc_proc_exit();
188#endif
189}
190MODULE_LICENSE("GPL");
191module_init(init_sunrpc);
192module_exit(cleanup_sunrpc);