Whamcloud - gitweb
- added connection structure which encompasses some (but perhaps not enough yet)
[fs/lustre-release.git] / lustre / ptlrpc / rpc.c
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (C) 2002 Cluster File Systems, Inc.
5  *
6  *   This file is part of Lustre, http://www.lustre.org.
7  *
8  *   Lustre is free software; you can redistribute it and/or
9  *   modify it under the terms of version 2 of the GNU General Public
10  *   License as published by the Free Software Foundation.
11  *
12  *   Lustre is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with Lustre; if not, write to the Free Software
19  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  *
21  */
22
23 #define EXPORT_SYMTAB
24
25 #include <linux/module.h>
26
27 #define DEBUG_SUBSYSTEM S_RPC
28
29 #include <linux/lustre_net.h>
30
31 extern int ptlrpc_init_portals(void);
32 extern void ptlrpc_exit_portals(void);
33
34
35 static int __init ptlrpc_init(void)
36 {
37         ptlrpc_init_connection();
38         return ptlrpc_init_portals();
39 }
40
41 static void __exit ptlrpc_exit(void)
42 {
43         ptlrpc_exit_portals();
44         ptlrpc_cleanup_connection();
45 }
46
47 MODULE_AUTHOR("Peter J. Braam <braam@clusterfs.com>");
48 MODULE_DESCRIPTION("Lustre Request Processor v1.0");
49 MODULE_LICENSE("GPL"); 
50
51 module_init(ptlrpc_init);
52 module_exit(ptlrpc_exit);