2 * linux/net/sunrpc/sunrpc_syms.c
4 * Symbols exported by the sunrpc module.
6 * Copyright (C) 1997 Olaf Kirch <okir@monad.swb.de>
9 #include <linux/module.h>
11 #include <linux/types.h>
12 #include <linux/uio.h>
13 #include <linux/unistd.h>
14 #include <linux/init.h>
16 #include <linux/sunrpc/sched.h>
17 #include <linux/sunrpc/clnt.h>
18 #include <linux/sunrpc/svc.h>
19 #include <linux/sunrpc/svcsock.h>
20 #include <linux/sunrpc/auth.h>
21 #include <linux/workqueue.h>
22 #include <linux/sunrpc/rpc_pipe_fs.h>
23 #include <linux/sunrpc/xprtsock.h>
29 static __net_init int sunrpc_init_net(struct net *net)
34 static __net_exit void sunrpc_exit_net(struct net *net)
38 static struct pernet_operations sunrpc_net_ops = {
39 .init = sunrpc_init_net,
40 .exit = sunrpc_exit_net,
42 .size = sizeof(struct sunrpc_net),
45 extern struct cache_detail ip_map_cache, unix_gid_cache;
47 extern void cleanup_rpcb_clnt(void);
52 int err = register_rpc_pipefs();
55 err = rpc_init_mempool();
58 err = rpcauth_init_module();
64 err = register_pernet_subsys(&sunrpc_net_ops);
68 rpc_register_sysctl();
73 cache_register(&ip_map_cache);
74 cache_register(&unix_gid_cache);
75 svc_init_xprt_sock(); /* svc sock transport */
76 init_socket_xprt(); /* clnt sock transport */
80 rpcauth_remove_module();
82 rpc_destroy_mempool();
84 unregister_rpc_pipefs();
93 rpcauth_remove_module();
94 cleanup_socket_xprt();
95 svc_cleanup_xprt_sock();
96 unregister_rpc_pipefs();
97 rpc_destroy_mempool();
98 cache_unregister(&ip_map_cache);
99 cache_unregister(&unix_gid_cache);
100 unregister_pernet_subsys(&sunrpc_net_ops);
102 rpc_unregister_sysctl();
104 #ifdef CONFIG_PROC_FS
107 rcu_barrier(); /* Wait for completion of call_rcu()'s */
109 MODULE_LICENSE("GPL");
110 fs_initcall(init_sunrpc); /* Ensure we're initialised before nfs */
111 module_exit(cleanup_sunrpc);