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