sunrpc_syms.c 4.4 KB

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