sunrpc_syms.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. #include <linux/module.h>
  9. #include <linux/types.h>
  10. #include <linux/uio.h>
  11. #include <linux/unistd.h>
  12. #include <linux/init.h>
  13. #include <linux/sunrpc/sched.h>
  14. #include <linux/sunrpc/clnt.h>
  15. #include <linux/sunrpc/svc.h>
  16. #include <linux/sunrpc/svcsock.h>
  17. #include <linux/sunrpc/auth.h>
  18. #include <linux/workqueue.h>
  19. #include <linux/sunrpc/rpc_pipe_fs.h>
  20. #include <linux/sunrpc/xprtsock.h>
  21. /* RPC server stuff */
  22. EXPORT_SYMBOL(svc_create);
  23. EXPORT_SYMBOL(svc_create_thread);
  24. EXPORT_SYMBOL(svc_create_pooled);
  25. EXPORT_SYMBOL(svc_set_num_threads);
  26. EXPORT_SYMBOL(svc_exit_thread);
  27. EXPORT_SYMBOL(svc_destroy);
  28. EXPORT_SYMBOL(svc_drop);
  29. EXPORT_SYMBOL(svc_process);
  30. EXPORT_SYMBOL(svc_recv);
  31. EXPORT_SYMBOL(svc_wake_up);
  32. EXPORT_SYMBOL(svc_makesock);
  33. EXPORT_SYMBOL(svc_reserve);
  34. EXPORT_SYMBOL(svc_auth_register);
  35. EXPORT_SYMBOL(auth_domain_lookup);
  36. EXPORT_SYMBOL(svc_authenticate);
  37. EXPORT_SYMBOL(svc_set_client);
  38. /* RPC statistics */
  39. #ifdef CONFIG_PROC_FS
  40. EXPORT_SYMBOL(svc_proc_register);
  41. EXPORT_SYMBOL(svc_proc_unregister);
  42. EXPORT_SYMBOL(svc_seq_show);
  43. #endif
  44. /* caching... */
  45. EXPORT_SYMBOL(auth_domain_find);
  46. EXPORT_SYMBOL(auth_domain_put);
  47. EXPORT_SYMBOL(auth_unix_add_addr);
  48. EXPORT_SYMBOL(auth_unix_forget_old);
  49. EXPORT_SYMBOL(auth_unix_lookup);
  50. EXPORT_SYMBOL(cache_check);
  51. EXPORT_SYMBOL(cache_flush);
  52. EXPORT_SYMBOL(cache_purge);
  53. EXPORT_SYMBOL(cache_register);
  54. EXPORT_SYMBOL(cache_unregister);
  55. EXPORT_SYMBOL(qword_add);
  56. EXPORT_SYMBOL(qword_addhex);
  57. EXPORT_SYMBOL(qword_get);
  58. EXPORT_SYMBOL(svcauth_unix_purge);
  59. EXPORT_SYMBOL(unix_domain_find);
  60. extern struct cache_detail ip_map_cache, unix_gid_cache;
  61. static int __init
  62. init_sunrpc(void)
  63. {
  64. int err = register_rpc_pipefs();
  65. if (err)
  66. goto out;
  67. err = rpc_init_mempool();
  68. if (err) {
  69. unregister_rpc_pipefs();
  70. goto out;
  71. }
  72. #ifdef RPC_DEBUG
  73. rpc_register_sysctl();
  74. #endif
  75. #ifdef CONFIG_PROC_FS
  76. rpc_proc_init();
  77. #endif
  78. cache_register(&ip_map_cache);
  79. cache_register(&unix_gid_cache);
  80. init_socket_xprt();
  81. rpcauth_init_module();
  82. out:
  83. return err;
  84. }
  85. static void __exit
  86. cleanup_sunrpc(void)
  87. {
  88. rpcauth_remove_module();
  89. cleanup_socket_xprt();
  90. unregister_rpc_pipefs();
  91. rpc_destroy_mempool();
  92. cache_unregister(&ip_map_cache);
  93. cache_unregister(&unix_gid_cache);
  94. #ifdef RPC_DEBUG
  95. rpc_unregister_sysctl();
  96. #endif
  97. #ifdef CONFIG_PROC_FS
  98. rpc_proc_exit();
  99. #endif
  100. }
  101. MODULE_LICENSE("GPL");
  102. module_init(init_sunrpc);
  103. module_exit(cleanup_sunrpc);