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> 2349c36fccS\"Talpey, Thomas\ #include <linux/sunrpc/xprtsock.h> 241da177e4SLinus Torvalds 251da177e4SLinus Torvalds /* RPC server stuff */ 261da177e4SLinus Torvalds EXPORT_SYMBOL(svc_create); 271da177e4SLinus Torvalds EXPORT_SYMBOL(svc_create_thread); 28a7455442SGreg Banks EXPORT_SYMBOL(svc_create_pooled); 29a7455442SGreg Banks EXPORT_SYMBOL(svc_set_num_threads); 301da177e4SLinus Torvalds EXPORT_SYMBOL(svc_exit_thread); 311da177e4SLinus Torvalds EXPORT_SYMBOL(svc_destroy); 321da177e4SLinus Torvalds EXPORT_SYMBOL(svc_drop); 331da177e4SLinus Torvalds EXPORT_SYMBOL(svc_process); 341da177e4SLinus Torvalds EXPORT_SYMBOL(svc_recv); 351da177e4SLinus Torvalds EXPORT_SYMBOL(svc_wake_up); 361da177e4SLinus Torvalds EXPORT_SYMBOL(svc_makesock); 371da177e4SLinus Torvalds EXPORT_SYMBOL(svc_reserve); 381da177e4SLinus Torvalds EXPORT_SYMBOL(svc_auth_register); 391da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_lookup); 401da177e4SLinus Torvalds EXPORT_SYMBOL(svc_authenticate); 411da177e4SLinus Torvalds EXPORT_SYMBOL(svc_set_client); 421da177e4SLinus Torvalds 431da177e4SLinus Torvalds /* RPC statistics */ 441da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS 451da177e4SLinus Torvalds EXPORT_SYMBOL(svc_proc_register); 461da177e4SLinus Torvalds EXPORT_SYMBOL(svc_proc_unregister); 471da177e4SLinus Torvalds EXPORT_SYMBOL(svc_seq_show); 481da177e4SLinus Torvalds #endif 491da177e4SLinus Torvalds 501da177e4SLinus Torvalds /* caching... */ 511da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_find); 521da177e4SLinus Torvalds EXPORT_SYMBOL(auth_domain_put); 531da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_add_addr); 541da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_forget_old); 551da177e4SLinus Torvalds EXPORT_SYMBOL(auth_unix_lookup); 561da177e4SLinus Torvalds EXPORT_SYMBOL(cache_check); 571da177e4SLinus Torvalds EXPORT_SYMBOL(cache_flush); 581da177e4SLinus Torvalds EXPORT_SYMBOL(cache_purge); 591da177e4SLinus Torvalds EXPORT_SYMBOL(cache_register); 601da177e4SLinus Torvalds EXPORT_SYMBOL(cache_unregister); 611da177e4SLinus Torvalds EXPORT_SYMBOL(qword_add); 621da177e4SLinus Torvalds EXPORT_SYMBOL(qword_addhex); 631da177e4SLinus Torvalds EXPORT_SYMBOL(qword_get); 641da177e4SLinus Torvalds EXPORT_SYMBOL(svcauth_unix_purge); 651da177e4SLinus Torvalds EXPORT_SYMBOL(unix_domain_find); 661da177e4SLinus Torvalds 673fc605a2SNeilBrown extern struct cache_detail ip_map_cache, unix_gid_cache; 681da177e4SLinus Torvalds 691da177e4SLinus Torvalds static int __init 701da177e4SLinus Torvalds init_sunrpc(void) 711da177e4SLinus Torvalds { 721da177e4SLinus Torvalds int err = register_rpc_pipefs(); 731da177e4SLinus Torvalds if (err) 741da177e4SLinus Torvalds goto out; 755bd5f581SAkinobu Mita err = rpc_init_mempool(); 765bd5f581SAkinobu Mita if (err) { 775bd5f581SAkinobu Mita unregister_rpc_pipefs(); 781da177e4SLinus Torvalds goto out; 795bd5f581SAkinobu Mita } 801da177e4SLinus Torvalds #ifdef RPC_DEBUG 811da177e4SLinus Torvalds rpc_register_sysctl(); 821da177e4SLinus Torvalds #endif 831da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS 841da177e4SLinus Torvalds rpc_proc_init(); 851da177e4SLinus Torvalds #endif 861da177e4SLinus Torvalds cache_register(&ip_map_cache); 873fc605a2SNeilBrown cache_register(&unix_gid_cache); 88282b32e1SChuck Lever init_socket_xprt(); 89f5c2187cSTrond Myklebust rpcauth_init_module(); 901da177e4SLinus Torvalds out: 911da177e4SLinus Torvalds return err; 921da177e4SLinus Torvalds } 931da177e4SLinus Torvalds 941da177e4SLinus Torvalds static void __exit 951da177e4SLinus Torvalds cleanup_sunrpc(void) 961da177e4SLinus Torvalds { 97f5c2187cSTrond Myklebust rpcauth_remove_module(); 98282b32e1SChuck Lever cleanup_socket_xprt(); 991da177e4SLinus Torvalds unregister_rpc_pipefs(); 1001da177e4SLinus Torvalds rpc_destroy_mempool(); 101df95a9d4SJ. Bruce Fields cache_unregister(&ip_map_cache); 102df95a9d4SJ. Bruce Fields cache_unregister(&unix_gid_cache); 1031da177e4SLinus Torvalds #ifdef RPC_DEBUG 1041da177e4SLinus Torvalds rpc_unregister_sysctl(); 1051da177e4SLinus Torvalds #endif 1061da177e4SLinus Torvalds #ifdef CONFIG_PROC_FS 1071da177e4SLinus Torvalds rpc_proc_exit(); 1081da177e4SLinus Torvalds #endif 1091da177e4SLinus Torvalds } 1101da177e4SLinus Torvalds MODULE_LICENSE("GPL"); 1111da177e4SLinus Torvalds module_init(init_sunrpc); 1121da177e4SLinus Torvalds module_exit(cleanup_sunrpc); 113