]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - net/sunrpc/sunrpc_syms.c
SUNRPC: rename the rpc_xprtsock_create structure
[mirror_ubuntu-artful-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
1da177e4
LT
9#include <linux/module.h>
10
11#include <linux/types.h>
1da177e4
LT
12#include <linux/uio.h>
13#include <linux/unistd.h>
14#include <linux/init.h>
15
16#include <linux/sunrpc/sched.h>
17#include <linux/sunrpc/clnt.h>
18#include <linux/sunrpc/svc.h>
19#include <linux/sunrpc/svcsock.h>
20#include <linux/sunrpc/auth.h>
21#include <linux/workqueue.h>
22#include <linux/sunrpc/rpc_pipe_fs.h>
23
24
25/* RPC scheduler */
26EXPORT_SYMBOL(rpc_execute);
27EXPORT_SYMBOL(rpc_init_task);
28EXPORT_SYMBOL(rpc_sleep_on);
29EXPORT_SYMBOL(rpc_wake_up_next);
30EXPORT_SYMBOL(rpc_wake_up_task);
1da177e4 31EXPORT_SYMBOL(rpc_wake_up_status);
1da177e4
LT
32
33/* RPC client functions */
1da177e4 34EXPORT_SYMBOL(rpc_clone_client);
007e251f 35EXPORT_SYMBOL(rpc_bind_new_program);
1da177e4 36EXPORT_SYMBOL(rpc_shutdown_client);
1da177e4
LT
37EXPORT_SYMBOL(rpc_killall_tasks);
38EXPORT_SYMBOL(rpc_call_sync);
39EXPORT_SYMBOL(rpc_call_async);
40EXPORT_SYMBOL(rpc_call_setup);
41EXPORT_SYMBOL(rpc_clnt_sigmask);
42EXPORT_SYMBOL(rpc_clnt_sigunmask);
43EXPORT_SYMBOL(rpc_delay);
44EXPORT_SYMBOL(rpc_restart_call);
45EXPORT_SYMBOL(rpc_setbufsize);
46EXPORT_SYMBOL(rpc_unlink);
47EXPORT_SYMBOL(rpc_wake_up);
48EXPORT_SYMBOL(rpc_queue_upcall);
49EXPORT_SYMBOL(rpc_mkpipe);
50
51/* Client transport */
1da177e4 52EXPORT_SYMBOL(xprt_set_timeout);
1da177e4
LT
53
54/* Client credential cache */
55EXPORT_SYMBOL(rpcauth_register);
56EXPORT_SYMBOL(rpcauth_unregister);
57EXPORT_SYMBOL(rpcauth_create);
58EXPORT_SYMBOL(rpcauth_lookupcred);
59EXPORT_SYMBOL(rpcauth_lookup_credcache);
3ab9bb72 60EXPORT_SYMBOL(rpcauth_destroy_credcache);
1da177e4
LT
61EXPORT_SYMBOL(rpcauth_init_credcache);
62EXPORT_SYMBOL(put_rpccred);
63
64/* RPC server stuff */
65EXPORT_SYMBOL(svc_create);
66EXPORT_SYMBOL(svc_create_thread);
a7455442
GB
67EXPORT_SYMBOL(svc_create_pooled);
68EXPORT_SYMBOL(svc_set_num_threads);
1da177e4
LT
69EXPORT_SYMBOL(svc_exit_thread);
70EXPORT_SYMBOL(svc_destroy);
71EXPORT_SYMBOL(svc_drop);
72EXPORT_SYMBOL(svc_process);
73EXPORT_SYMBOL(svc_recv);
74EXPORT_SYMBOL(svc_wake_up);
75EXPORT_SYMBOL(svc_makesock);
76EXPORT_SYMBOL(svc_reserve);
77EXPORT_SYMBOL(svc_auth_register);
78EXPORT_SYMBOL(auth_domain_lookup);
79EXPORT_SYMBOL(svc_authenticate);
80EXPORT_SYMBOL(svc_set_client);
81
82/* RPC statistics */
83#ifdef CONFIG_PROC_FS
84EXPORT_SYMBOL(rpc_proc_register);
85EXPORT_SYMBOL(rpc_proc_unregister);
86EXPORT_SYMBOL(svc_proc_register);
87EXPORT_SYMBOL(svc_proc_unregister);
88EXPORT_SYMBOL(svc_seq_show);
89#endif
90
91/* caching... */
92EXPORT_SYMBOL(auth_domain_find);
93EXPORT_SYMBOL(auth_domain_put);
94EXPORT_SYMBOL(auth_unix_add_addr);
95EXPORT_SYMBOL(auth_unix_forget_old);
96EXPORT_SYMBOL(auth_unix_lookup);
97EXPORT_SYMBOL(cache_check);
98EXPORT_SYMBOL(cache_flush);
99EXPORT_SYMBOL(cache_purge);
1da177e4
LT
100EXPORT_SYMBOL(cache_register);
101EXPORT_SYMBOL(cache_unregister);
102EXPORT_SYMBOL(qword_add);
103EXPORT_SYMBOL(qword_addhex);
104EXPORT_SYMBOL(qword_get);
105EXPORT_SYMBOL(svcauth_unix_purge);
106EXPORT_SYMBOL(unix_domain_find);
107
108/* Generic XDR */
109EXPORT_SYMBOL(xdr_encode_string);
1da177e4
LT
110EXPORT_SYMBOL(xdr_decode_string_inplace);
111EXPORT_SYMBOL(xdr_decode_netobj);
112EXPORT_SYMBOL(xdr_encode_netobj);
113EXPORT_SYMBOL(xdr_encode_pages);
114EXPORT_SYMBOL(xdr_inline_pages);
115EXPORT_SYMBOL(xdr_shift_buf);
bd8100e7
AG
116EXPORT_SYMBOL(xdr_encode_word);
117EXPORT_SYMBOL(xdr_decode_word);
118EXPORT_SYMBOL(xdr_encode_array2);
119EXPORT_SYMBOL(xdr_decode_array2);
1da177e4
LT
120EXPORT_SYMBOL(xdr_buf_from_iov);
121EXPORT_SYMBOL(xdr_buf_subsegment);
122EXPORT_SYMBOL(xdr_buf_read_netobj);
123EXPORT_SYMBOL(read_bytes_from_xdr_buf);
124
125/* Debugging symbols */
126#ifdef RPC_DEBUG
127EXPORT_SYMBOL(rpc_debug);
128EXPORT_SYMBOL(nfs_debug);
129EXPORT_SYMBOL(nfsd_debug);
130EXPORT_SYMBOL(nlm_debug);
131#endif
132
3fc605a2 133extern struct cache_detail ip_map_cache, unix_gid_cache;
1da177e4
LT
134
135static int __init
136init_sunrpc(void)
137{
138 int err = register_rpc_pipefs();
139 if (err)
140 goto out;
5bd5f581
AM
141 err = rpc_init_mempool();
142 if (err) {
143 unregister_rpc_pipefs();
1da177e4 144 goto out;
5bd5f581 145 }
1da177e4
LT
146#ifdef RPC_DEBUG
147 rpc_register_sysctl();
148#endif
149#ifdef CONFIG_PROC_FS
150 rpc_proc_init();
151#endif
1da177e4 152 cache_register(&ip_map_cache);
3fc605a2 153 cache_register(&unix_gid_cache);
282b32e1 154 init_socket_xprt();
f5c2187c 155 rpcauth_init_module();
1da177e4
LT
156out:
157 return err;
158}
159
160static void __exit
161cleanup_sunrpc(void)
162{
f5c2187c 163 rpcauth_remove_module();
282b32e1 164 cleanup_socket_xprt();
1da177e4
LT
165 unregister_rpc_pipefs();
166 rpc_destroy_mempool();
f35279d3
BA
167 if (cache_unregister(&ip_map_cache))
168 printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n");
3fc605a2
N
169 if (cache_unregister(&unix_gid_cache))
170 printk(KERN_ERR "sunrpc: failed to unregister unix_gid cache\n");
1da177e4
LT
171#ifdef RPC_DEBUG
172 rpc_unregister_sysctl();
173#endif
174#ifdef CONFIG_PROC_FS
175 rpc_proc_exit();
176#endif
177}
178MODULE_LICENSE("GPL");
179module_init(init_sunrpc);
180module_exit(cleanup_sunrpc);