xref: /openbmc/linux/net/sunrpc/sunrpc_syms.c (revision 3ab9bb72)
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/uio.h>
131da177e4SLinus Torvalds #include <linux/unistd.h>
141da177e4SLinus Torvalds #include <linux/init.h>
151da177e4SLinus Torvalds 
161da177e4SLinus Torvalds #include <linux/sunrpc/sched.h>
171da177e4SLinus Torvalds #include <linux/sunrpc/clnt.h>
181da177e4SLinus Torvalds #include <linux/sunrpc/svc.h>
191da177e4SLinus Torvalds #include <linux/sunrpc/svcsock.h>
201da177e4SLinus Torvalds #include <linux/sunrpc/auth.h>
211da177e4SLinus Torvalds #include <linux/workqueue.h>
221da177e4SLinus Torvalds #include <linux/sunrpc/rpc_pipe_fs.h>
231da177e4SLinus Torvalds 
241da177e4SLinus Torvalds 
251da177e4SLinus Torvalds /* RPC scheduler */
261da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_execute);
271da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_init_task);
281da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_sleep_on);
291da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up_next);
301da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up_task);
311da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up_status);
321da177e4SLinus Torvalds 
331da177e4SLinus Torvalds /* RPC client functions */
341da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_clone_client);
35007e251fSAndreas Gruenbacher EXPORT_SYMBOL(rpc_bind_new_program);
361da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_shutdown_client);
371da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_killall_tasks);
381da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_call_sync);
391da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_call_async);
401da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_call_setup);
411da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_clnt_sigmask);
421da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_clnt_sigunmask);
431da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_delay);
441da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_restart_call);
451da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_setbufsize);
461da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_unlink);
471da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_wake_up);
481da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_queue_upcall);
491da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_mkpipe);
501da177e4SLinus Torvalds 
511da177e4SLinus Torvalds /* Client transport */
521da177e4SLinus Torvalds EXPORT_SYMBOL(xprt_set_timeout);
531da177e4SLinus Torvalds 
541da177e4SLinus Torvalds /* Client credential cache */
551da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_register);
561da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_unregister);
571da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_create);
581da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_lookupcred);
591da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_lookup_credcache);
603ab9bb72STrond Myklebust EXPORT_SYMBOL(rpcauth_destroy_credcache);
611da177e4SLinus Torvalds EXPORT_SYMBOL(rpcauth_init_credcache);
621da177e4SLinus Torvalds EXPORT_SYMBOL(put_rpccred);
631da177e4SLinus Torvalds 
641da177e4SLinus Torvalds /* RPC server stuff */
651da177e4SLinus Torvalds EXPORT_SYMBOL(svc_create);
661da177e4SLinus Torvalds EXPORT_SYMBOL(svc_create_thread);
67a7455442SGreg Banks EXPORT_SYMBOL(svc_create_pooled);
68a7455442SGreg Banks EXPORT_SYMBOL(svc_set_num_threads);
691da177e4SLinus Torvalds EXPORT_SYMBOL(svc_exit_thread);
701da177e4SLinus Torvalds EXPORT_SYMBOL(svc_destroy);
711da177e4SLinus Torvalds EXPORT_SYMBOL(svc_drop);
721da177e4SLinus Torvalds EXPORT_SYMBOL(svc_process);
731da177e4SLinus Torvalds EXPORT_SYMBOL(svc_recv);
741da177e4SLinus Torvalds EXPORT_SYMBOL(svc_wake_up);
751da177e4SLinus Torvalds EXPORT_SYMBOL(svc_makesock);
761da177e4SLinus Torvalds EXPORT_SYMBOL(svc_reserve);
771da177e4SLinus Torvalds EXPORT_SYMBOL(svc_auth_register);
781da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_lookup);
791da177e4SLinus Torvalds EXPORT_SYMBOL(svc_authenticate);
801da177e4SLinus Torvalds EXPORT_SYMBOL(svc_set_client);
811da177e4SLinus Torvalds 
821da177e4SLinus Torvalds /* RPC statistics */
831da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS
841da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_proc_register);
851da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_proc_unregister);
861da177e4SLinus Torvalds EXPORT_SYMBOL(svc_proc_register);
871da177e4SLinus Torvalds EXPORT_SYMBOL(svc_proc_unregister);
881da177e4SLinus Torvalds EXPORT_SYMBOL(svc_seq_show);
891da177e4SLinus Torvalds #endif
901da177e4SLinus Torvalds 
911da177e4SLinus Torvalds /* caching... */
921da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_find);
931da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_put);
941da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_add_addr);
951da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_forget_old);
961da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_lookup);
971da177e4SLinus Torvalds EXPORT_SYMBOL(cache_check);
981da177e4SLinus Torvalds EXPORT_SYMBOL(cache_flush);
991da177e4SLinus Torvalds EXPORT_SYMBOL(cache_purge);
1001da177e4SLinus Torvalds EXPORT_SYMBOL(cache_register);
1011da177e4SLinus Torvalds EXPORT_SYMBOL(cache_unregister);
1021da177e4SLinus Torvalds EXPORT_SYMBOL(qword_add);
1031da177e4SLinus Torvalds EXPORT_SYMBOL(qword_addhex);
1041da177e4SLinus Torvalds EXPORT_SYMBOL(qword_get);
1051da177e4SLinus Torvalds EXPORT_SYMBOL(svcauth_unix_purge);
1061da177e4SLinus Torvalds EXPORT_SYMBOL(unix_domain_find);
1071da177e4SLinus Torvalds 
1081da177e4SLinus Torvalds /* Generic XDR */
1091da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_encode_string);
1101da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_decode_string_inplace);
1111da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_decode_netobj);
1121da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_encode_netobj);
1131da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_encode_pages);
1141da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_inline_pages);
1151da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_shift_buf);
116bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_encode_word);
117bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_decode_word);
118bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_encode_array2);
119bd8100e7SAndreas Gruenbacher EXPORT_SYMBOL(xdr_decode_array2);
1201da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_buf_from_iov);
1211da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_buf_subsegment);
1221da177e4SLinus Torvalds EXPORT_SYMBOL(xdr_buf_read_netobj);
1231da177e4SLinus Torvalds EXPORT_SYMBOL(read_bytes_from_xdr_buf);
1241da177e4SLinus Torvalds 
1251da177e4SLinus Torvalds /* Debugging symbols */
1261da177e4SLinus Torvalds #ifdef RPC_DEBUG
1271da177e4SLinus Torvalds EXPORT_SYMBOL(rpc_debug);
1281da177e4SLinus Torvalds EXPORT_SYMBOL(nfs_debug);
1291da177e4SLinus Torvalds EXPORT_SYMBOL(nfsd_debug);
1301da177e4SLinus Torvalds EXPORT_SYMBOL(nlm_debug);
1311da177e4SLinus Torvalds #endif
1321da177e4SLinus Torvalds 
1333fc605a2SNeilBrown extern struct cache_detail ip_map_cache, unix_gid_cache;
1341da177e4SLinus Torvalds 
1351da177e4SLinus Torvalds static int __init
1361da177e4SLinus Torvalds init_sunrpc(void)
1371da177e4SLinus Torvalds {
1381da177e4SLinus Torvalds 	int err = register_rpc_pipefs();
1391da177e4SLinus Torvalds 	if (err)
1401da177e4SLinus Torvalds 		goto out;
1415bd5f581SAkinobu Mita 	err = rpc_init_mempool();
1425bd5f581SAkinobu Mita 	if (err) {
1435bd5f581SAkinobu Mita 		unregister_rpc_pipefs();
1441da177e4SLinus Torvalds 		goto out;
1455bd5f581SAkinobu Mita 	}
1461da177e4SLinus Torvalds #ifdef RPC_DEBUG
1471da177e4SLinus Torvalds 	rpc_register_sysctl();
1481da177e4SLinus Torvalds #endif
1491da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS
1501da177e4SLinus Torvalds 	rpc_proc_init();
1511da177e4SLinus Torvalds #endif
1521da177e4SLinus Torvalds 	cache_register(&ip_map_cache);
1533fc605a2SNeilBrown 	cache_register(&unix_gid_cache);
154282b32e1SChuck Lever 	init_socket_xprt();
1551da177e4SLinus Torvalds out:
1561da177e4SLinus Torvalds 	return err;
1571da177e4SLinus Torvalds }
1581da177e4SLinus Torvalds 
1591da177e4SLinus Torvalds static void __exit
1601da177e4SLinus Torvalds cleanup_sunrpc(void)
1611da177e4SLinus Torvalds {
162282b32e1SChuck Lever 	cleanup_socket_xprt();
1631da177e4SLinus Torvalds 	unregister_rpc_pipefs();
1641da177e4SLinus Torvalds 	rpc_destroy_mempool();
165f35279d3SBruce Allan 	if (cache_unregister(&ip_map_cache))
166f35279d3SBruce Allan 		printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n");
1673fc605a2SNeilBrown 	if (cache_unregister(&unix_gid_cache))
1683fc605a2SNeilBrown 	      printk(KERN_ERR "sunrpc: failed to unregister unix_gid cache\n");
1691da177e4SLinus Torvalds #ifdef RPC_DEBUG
1701da177e4SLinus Torvalds 	rpc_unregister_sysctl();
1711da177e4SLinus Torvalds #endif
1721da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS
1731da177e4SLinus Torvalds 	rpc_proc_exit();
1741da177e4SLinus Torvalds #endif
1751da177e4SLinus Torvalds }
1761da177e4SLinus Torvalds MODULE_LICENSE("GPL");
1771da177e4SLinus Torvalds module_init(init_sunrpc);
1781da177e4SLinus Torvalds module_exit(cleanup_sunrpc);
179