xref: /openbmc/linux/net/sunrpc/sunrpc_syms.c (revision 282b32e1)
11da177e4SLinus Torvalds /*
21da177e4SLinus Torvalds  * linux/net/sunrpc/sunrpc_syms.c
31da177e4SLinus Torvalds  *
41da177e4SLinus Torvalds  * Symbols exported by the sunrpc module.
51da177e4SLinus Torvalds  *
61da177e4SLinus Torvalds  * Copyright (C) 1997 Olaf Kirch <okir@monad.swb.de>
71da177e4SLinus Torvalds  */
81da177e4SLinus Torvalds 
91da177e4SLinus Torvalds #include <linux/module.h>
101da177e4SLinus Torvalds 
111da177e4SLinus Torvalds #include <linux/types.h>
121da177e4SLinus Torvalds #include <linux/sched.h>
131da177e4SLinus Torvalds #include <linux/uio.h>
141da177e4SLinus Torvalds #include <linux/unistd.h>
151da177e4SLinus Torvalds #include <linux/init.h>
161da177e4SLinus Torvalds 
171da177e4SLinus Torvalds #include <linux/sunrpc/sched.h>
181da177e4SLinus Torvalds #include <linux/sunrpc/clnt.h>
191da177e4SLinus Torvalds #include <linux/sunrpc/svc.h>
201da177e4SLinus Torvalds #include <linux/sunrpc/svcsock.h>
211da177e4SLinus Torvalds #include <linux/sunrpc/auth.h>
221da177e4SLinus Torvalds #include <linux/workqueue.h>
231da177e4SLinus Torvalds #include <linux/sunrpc/rpc_pipe_fs.h>
241da177e4SLinus Torvalds 
251da177e4SLinus Torvalds 
261da177e4SLinus Torvalds /* RPC scheduler */
271da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_execute);
281da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_init_task);
291da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_sleep_on);
301da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up_next);
311da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up_task);
321da177e4SLinus Torvalds EXPORT_SYMBOL(rpciod_down);
331da177e4SLinus Torvalds EXPORT_SYMBOL(rpciod_up);
341da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_new_task);
351da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up_status);
361da177e4SLinus Torvalds 
371da177e4SLinus Torvalds /* RPC client functions */
381da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_clone_client);
39007e251fSAndreas Gruenbacher EXPORT_SYMBOL(rpc_bind_new_program);
401da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_destroy_client);
411da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_shutdown_client);
421da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_killall_tasks);
431da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_call_sync);
441da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_call_async);
451da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_call_setup);
461da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_clnt_sigmask);
471da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_clnt_sigunmask);
481da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_delay);
491da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_restart_call);
501da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_setbufsize);
511da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_unlink);
521da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up);
531da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_queue_upcall);
541da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_mkpipe);
551da177e4SLinus Torvalds 
561da177e4SLinus Torvalds /* Client transport */
571da177e4SLinus Torvalds EXPORT_SYMBOL(xprt_set_timeout);
581da177e4SLinus Torvalds 
591da177e4SLinus Torvalds /* Client credential cache */
601da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_register);
611da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_unregister);
621da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_create);
631da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_lookupcred);
641da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_lookup_credcache);
651da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_free_credcache);
661da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_init_credcache);
671da177e4SLinus Torvalds EXPORT_SYMBOL(put_rpccred);
681da177e4SLinus Torvalds 
691da177e4SLinus Torvalds /* RPC server stuff */
701da177e4SLinus Torvalds EXPORT_SYMBOL(svc_create);
711da177e4SLinus Torvalds EXPORT_SYMBOL(svc_create_thread);
72a7455442SGreg Banks EXPORT_SYMBOL(svc_create_pooled);
73a7455442SGreg Banks EXPORT_SYMBOL(svc_set_num_threads);
741da177e4SLinus Torvalds EXPORT_SYMBOL(svc_exit_thread);
751da177e4SLinus Torvalds EXPORT_SYMBOL(svc_destroy);
761da177e4SLinus Torvalds EXPORT_SYMBOL(svc_drop);
771da177e4SLinus Torvalds EXPORT_SYMBOL(svc_process);
781da177e4SLinus Torvalds EXPORT_SYMBOL(svc_recv);
791da177e4SLinus Torvalds EXPORT_SYMBOL(svc_wake_up);
801da177e4SLinus Torvalds EXPORT_SYMBOL(svc_makesock);
811da177e4SLinus Torvalds EXPORT_SYMBOL(svc_reserve);
821da177e4SLinus Torvalds EXPORT_SYMBOL(svc_auth_register);
831da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_lookup);
841da177e4SLinus Torvalds EXPORT_SYMBOL(svc_authenticate);
851da177e4SLinus Torvalds EXPORT_SYMBOL(svc_set_client);
861da177e4SLinus Torvalds 
871da177e4SLinus Torvalds /* RPC statistics */
881da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS
891da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_proc_register);
901da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_proc_unregister);
911da177e4SLinus Torvalds EXPORT_SYMBOL(svc_proc_register);
921da177e4SLinus Torvalds EXPORT_SYMBOL(svc_proc_unregister);
931da177e4SLinus Torvalds EXPORT_SYMBOL(svc_seq_show);
941da177e4SLinus Torvalds #endif
951da177e4SLinus Torvalds 
961da177e4SLinus Torvalds /* caching... */
971da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_find);
981da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_put);
991da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_add_addr);
1001da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_forget_old);
1011da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_lookup);
1021da177e4SLinus Torvalds EXPORT_SYMBOL(cache_check);
1031da177e4SLinus Torvalds EXPORT_SYMBOL(cache_flush);
1041da177e4SLinus Torvalds EXPORT_SYMBOL(cache_purge);
1051da177e4SLinus Torvalds EXPORT_SYMBOL(cache_register);
1061da177e4SLinus Torvalds EXPORT_SYMBOL(cache_unregister);
1071da177e4SLinus Torvalds EXPORT_SYMBOL(qword_add);
1081da177e4SLinus Torvalds EXPORT_SYMBOL(qword_addhex);
1091da177e4SLinus Torvalds EXPORT_SYMBOL(qword_get);
1101da177e4SLinus Torvalds EXPORT_SYMBOL(svcauth_unix_purge);
1111da177e4SLinus Torvalds EXPORT_SYMBOL(unix_domain_find);
1121da177e4SLinus Torvalds 
1131da177e4SLinus Torvalds /* Generic XDR */
1141da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_encode_string);
1151da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_decode_string_inplace);
1161da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_decode_netobj);
1171da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_encode_netobj);
1181da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_encode_pages);
1191da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_inline_pages);
1201da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_shift_buf);
121bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_encode_word);
122bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_decode_word);
123bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_encode_array2);
124bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_decode_array2);
1251da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_buf_from_iov);
1261da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_buf_subsegment);
1271da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_buf_read_netobj);
1281da177e4SLinus Torvalds EXPORT_SYMBOL(read_bytes_from_xdr_buf);
1291da177e4SLinus Torvalds 
1301da177e4SLinus Torvalds /* Debugging symbols */
1311da177e4SLinus Torvalds #ifdef RPC_DEBUG
1321da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_debug);
1331da177e4SLinus Torvalds EXPORT_SYMBOL(nfs_debug);
1341da177e4SLinus Torvalds EXPORT_SYMBOL(nfsd_debug);
1351da177e4SLinus Torvalds EXPORT_SYMBOL(nlm_debug);
1361da177e4SLinus Torvalds #endif
1371da177e4SLinus Torvalds 
1381da177e4SLinus Torvalds extern int register_rpc_pipefs(void);
1391da177e4SLinus Torvalds extern void unregister_rpc_pipefs(void);
140efc36aa5SNeilBrown extern struct cache_detail ip_map_cache;
141282b32e1SChuck Lever extern int init_socket_xprt(void);
142282b32e1SChuck Lever extern void cleanup_socket_xprt(void);
1431da177e4SLinus Torvalds 
1441da177e4SLinus Torvalds static int __init
1451da177e4SLinus Torvalds init_sunrpc(void)
1461da177e4SLinus Torvalds {
1471da177e4SLinus Torvalds 	int err = register_rpc_pipefs();
1481da177e4SLinus Torvalds 	if (err)
1491da177e4SLinus Torvalds 		goto out;
1501da177e4SLinus Torvalds 	err = rpc_init_mempool() != 0;
1511da177e4SLinus Torvalds 	if (err)
1521da177e4SLinus Torvalds 		goto out;
1531da177e4SLinus Torvalds #ifdef RPC_DEBUG
1541da177e4SLinus Torvalds 	rpc_register_sysctl();
1551da177e4SLinus Torvalds #endif
1561da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS
1571da177e4SLinus Torvalds 	rpc_proc_init();
1581da177e4SLinus Torvalds #endif
1591da177e4SLinus Torvalds 	cache_register(&ip_map_cache);
160282b32e1SChuck Lever 	init_socket_xprt();
1611da177e4SLinus Torvalds out:
1621da177e4SLinus Torvalds 	return err;
1631da177e4SLinus Torvalds }
1641da177e4SLinus Torvalds 
1651da177e4SLinus Torvalds static void __exit
1661da177e4SLinus Torvalds cleanup_sunrpc(void)
1671da177e4SLinus Torvalds {
168282b32e1SChuck Lever 	cleanup_socket_xprt();
1691da177e4SLinus Torvalds 	unregister_rpc_pipefs();
1701da177e4SLinus Torvalds 	rpc_destroy_mempool();
171f35279d3SBruce Allan 	if (cache_unregister(&ip_map_cache))
172f35279d3SBruce Allan 		printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n");
1731da177e4SLinus Torvalds #ifdef RPC_DEBUG
1741da177e4SLinus Torvalds 	rpc_unregister_sysctl();
1751da177e4SLinus Torvalds #endif
1761da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS
1771da177e4SLinus Torvalds 	rpc_proc_exit();
1781da177e4SLinus Torvalds #endif
1791da177e4SLinus Torvalds }
1801da177e4SLinus Torvalds MODULE_LICENSE("GPL");
1811da177e4SLinus Torvalds module_init(init_sunrpc);
1821da177e4SLinus Torvalds module_exit(cleanup_sunrpc);
183