sunrpc_syms.c 4.6 KB

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