]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - net/sunrpc/sunrpc_syms.c
This fixes a panic doing the first READDIR or READDIRPLUS call when:
[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/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);
1da177e4
LT
32EXPORT_SYMBOL(rpciod_down);
33EXPORT_SYMBOL(rpciod_up);
34EXPORT_SYMBOL(rpc_new_task);
35EXPORT_SYMBOL(rpc_wake_up_status);
36EXPORT_SYMBOL(rpc_release_task);
37
38/* RPC client functions */
39EXPORT_SYMBOL(rpc_create_client);
5ba266d6 40EXPORT_SYMBOL(rpc_new_client);
1da177e4 41EXPORT_SYMBOL(rpc_clone_client);
007e251f 42EXPORT_SYMBOL(rpc_bind_new_program);
1da177e4
LT
43EXPORT_SYMBOL(rpc_destroy_client);
44EXPORT_SYMBOL(rpc_shutdown_client);
1da177e4
LT
45EXPORT_SYMBOL(rpc_killall_tasks);
46EXPORT_SYMBOL(rpc_call_sync);
47EXPORT_SYMBOL(rpc_call_async);
48EXPORT_SYMBOL(rpc_call_setup);
49EXPORT_SYMBOL(rpc_clnt_sigmask);
50EXPORT_SYMBOL(rpc_clnt_sigunmask);
51EXPORT_SYMBOL(rpc_delay);
52EXPORT_SYMBOL(rpc_restart_call);
53EXPORT_SYMBOL(rpc_setbufsize);
54EXPORT_SYMBOL(rpc_unlink);
55EXPORT_SYMBOL(rpc_wake_up);
56EXPORT_SYMBOL(rpc_queue_upcall);
57EXPORT_SYMBOL(rpc_mkpipe);
58
59/* Client transport */
60EXPORT_SYMBOL(xprt_create_proto);
1da177e4 61EXPORT_SYMBOL(xprt_set_timeout);
1da177e4
LT
62
63/* Client credential cache */
64EXPORT_SYMBOL(rpcauth_register);
65EXPORT_SYMBOL(rpcauth_unregister);
66EXPORT_SYMBOL(rpcauth_create);
67EXPORT_SYMBOL(rpcauth_lookupcred);
68EXPORT_SYMBOL(rpcauth_lookup_credcache);
69EXPORT_SYMBOL(rpcauth_free_credcache);
70EXPORT_SYMBOL(rpcauth_init_credcache);
71EXPORT_SYMBOL(put_rpccred);
72
73/* RPC server stuff */
74EXPORT_SYMBOL(svc_create);
75EXPORT_SYMBOL(svc_create_thread);
76EXPORT_SYMBOL(svc_exit_thread);
77EXPORT_SYMBOL(svc_destroy);
78EXPORT_SYMBOL(svc_drop);
79EXPORT_SYMBOL(svc_process);
80EXPORT_SYMBOL(svc_recv);
81EXPORT_SYMBOL(svc_wake_up);
82EXPORT_SYMBOL(svc_makesock);
83EXPORT_SYMBOL(svc_reserve);
84EXPORT_SYMBOL(svc_auth_register);
85EXPORT_SYMBOL(auth_domain_lookup);
86EXPORT_SYMBOL(svc_authenticate);
87EXPORT_SYMBOL(svc_set_client);
88
89/* RPC statistics */
90#ifdef CONFIG_PROC_FS
91EXPORT_SYMBOL(rpc_proc_register);
92EXPORT_SYMBOL(rpc_proc_unregister);
93EXPORT_SYMBOL(svc_proc_register);
94EXPORT_SYMBOL(svc_proc_unregister);
95EXPORT_SYMBOL(svc_seq_show);
96#endif
97
98/* caching... */
99EXPORT_SYMBOL(auth_domain_find);
100EXPORT_SYMBOL(auth_domain_put);
101EXPORT_SYMBOL(auth_unix_add_addr);
102EXPORT_SYMBOL(auth_unix_forget_old);
103EXPORT_SYMBOL(auth_unix_lookup);
104EXPORT_SYMBOL(cache_check);
105EXPORT_SYMBOL(cache_flush);
106EXPORT_SYMBOL(cache_purge);
1da177e4
LT
107EXPORT_SYMBOL(cache_register);
108EXPORT_SYMBOL(cache_unregister);
109EXPORT_SYMBOL(qword_add);
110EXPORT_SYMBOL(qword_addhex);
111EXPORT_SYMBOL(qword_get);
112EXPORT_SYMBOL(svcauth_unix_purge);
113EXPORT_SYMBOL(unix_domain_find);
114
115/* Generic XDR */
116EXPORT_SYMBOL(xdr_encode_string);
1da177e4
LT
117EXPORT_SYMBOL(xdr_decode_string_inplace);
118EXPORT_SYMBOL(xdr_decode_netobj);
119EXPORT_SYMBOL(xdr_encode_netobj);
120EXPORT_SYMBOL(xdr_encode_pages);
121EXPORT_SYMBOL(xdr_inline_pages);
122EXPORT_SYMBOL(xdr_shift_buf);
bd8100e7
AG
123EXPORT_SYMBOL(xdr_encode_word);
124EXPORT_SYMBOL(xdr_decode_word);
125EXPORT_SYMBOL(xdr_encode_array2);
126EXPORT_SYMBOL(xdr_decode_array2);
1da177e4
LT
127EXPORT_SYMBOL(xdr_buf_from_iov);
128EXPORT_SYMBOL(xdr_buf_subsegment);
129EXPORT_SYMBOL(xdr_buf_read_netobj);
130EXPORT_SYMBOL(read_bytes_from_xdr_buf);
131
132/* Debugging symbols */
133#ifdef RPC_DEBUG
134EXPORT_SYMBOL(rpc_debug);
135EXPORT_SYMBOL(nfs_debug);
136EXPORT_SYMBOL(nfsd_debug);
137EXPORT_SYMBOL(nlm_debug);
138#endif
139
140extern int register_rpc_pipefs(void);
141extern void unregister_rpc_pipefs(void);
efc36aa5 142extern struct cache_detail ip_map_cache;
1da177e4
LT
143
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
1da177e4
LT
159 cache_register(&ip_map_cache);
160out:
161 return err;
162}
163
164static void __exit
165cleanup_sunrpc(void)
166{
167 unregister_rpc_pipefs();
168 rpc_destroy_mempool();
f35279d3
BA
169 if (cache_unregister(&ip_map_cache))
170 printk(KERN_ERR "sunrpc: failed to unregister ip_map 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);