equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * TFRC: main module holding the pieces of the TFRC library together |
2 * TFRC library initialisation |
3 * |
3 * |
4 * Copyright (c) 2007 The University of Aberdeen, Scotland, UK |
4 * Copyright (c) 2007 The University of Aberdeen, Scotland, UK |
5 * Copyright (c) 2007 Arnaldo Carvalho de Melo <acme@redhat.com> |
5 * Copyright (c) 2007 Arnaldo Carvalho de Melo <acme@redhat.com> |
6 */ |
6 */ |
7 #include <linux/module.h> |
|
8 #include <linux/moduleparam.h> |
|
9 #include "tfrc.h" |
7 #include "tfrc.h" |
10 |
8 |
11 #ifdef CONFIG_IP_DCCP_TFRC_DEBUG |
9 #ifdef CONFIG_IP_DCCP_TFRC_DEBUG |
12 int tfrc_debug; |
10 int tfrc_debug; |
13 module_param(tfrc_debug, bool, 0644); |
11 module_param(tfrc_debug, bool, 0644); |
14 MODULE_PARM_DESC(tfrc_debug, "Enable debug messages"); |
12 MODULE_PARM_DESC(tfrc_debug, "Enable TFRC debug messages"); |
15 #endif |
13 #endif |
16 |
14 |
17 static int __init tfrc_module_init(void) |
15 int __init tfrc_lib_init(void) |
18 { |
16 { |
19 int rc = tfrc_li_init(); |
17 int rc = tfrc_li_init(); |
20 |
18 |
21 if (rc) |
19 if (rc) |
22 goto out; |
20 goto out; |
36 tfrc_li_exit(); |
34 tfrc_li_exit(); |
37 out: |
35 out: |
38 return rc; |
36 return rc; |
39 } |
37 } |
40 |
38 |
41 static void __exit tfrc_module_exit(void) |
39 void tfrc_lib_exit(void) |
42 { |
40 { |
43 tfrc_rx_packet_history_exit(); |
41 tfrc_rx_packet_history_exit(); |
44 tfrc_tx_packet_history_exit(); |
42 tfrc_tx_packet_history_exit(); |
45 tfrc_li_exit(); |
43 tfrc_li_exit(); |
46 } |
44 } |
47 |
|
48 module_init(tfrc_module_init); |
|
49 module_exit(tfrc_module_exit); |
|
50 |
|
51 MODULE_AUTHOR("Gerrit Renker <gerrit@erg.abdn.ac.uk>, " |
|
52 "Ian McDonald <ian.mcdonald@jandi.co.nz>, " |
|
53 "Arnaldo Carvalho de Melo <acme@redhat.com>"); |
|
54 MODULE_DESCRIPTION("DCCP TFRC library"); |
|
55 MODULE_LICENSE("GPL"); |
|