HID: fix bus endianity in file2alias
[linux/fpc-iii.git] / net / dccp / sysctl.c
blob018e210875e168141a2aca941ab11ca7daaca9ef
1 /*
2 * net/dccp/sysctl.c
4 * An implementation of the DCCP protocol
5 * Arnaldo Carvalho de Melo <acme@mandriva.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License v2
9 * as published by the Free Software Foundation.
12 #include <linux/mm.h>
13 #include <linux/sysctl.h>
14 #include "dccp.h"
15 #include "feat.h"
17 #ifndef CONFIG_SYSCTL
18 #error This file should not be compiled without CONFIG_SYSCTL defined
19 #endif
21 static struct ctl_table dccp_default_table[] = {
23 .procname = "seq_window",
24 .data = &sysctl_dccp_feat_sequence_window,
25 .maxlen = sizeof(sysctl_dccp_feat_sequence_window),
26 .mode = 0644,
27 .proc_handler = proc_dointvec,
30 .procname = "rx_ccid",
31 .data = &sysctl_dccp_feat_rx_ccid,
32 .maxlen = sizeof(sysctl_dccp_feat_rx_ccid),
33 .mode = 0644,
34 .proc_handler = proc_dointvec,
37 .procname = "tx_ccid",
38 .data = &sysctl_dccp_feat_tx_ccid,
39 .maxlen = sizeof(sysctl_dccp_feat_tx_ccid),
40 .mode = 0644,
41 .proc_handler = proc_dointvec,
44 .procname = "request_retries",
45 .data = &sysctl_dccp_request_retries,
46 .maxlen = sizeof(sysctl_dccp_request_retries),
47 .mode = 0644,
48 .proc_handler = proc_dointvec,
51 .procname = "retries1",
52 .data = &sysctl_dccp_retries1,
53 .maxlen = sizeof(sysctl_dccp_retries1),
54 .mode = 0644,
55 .proc_handler = proc_dointvec,
58 .procname = "retries2",
59 .data = &sysctl_dccp_retries2,
60 .maxlen = sizeof(sysctl_dccp_retries2),
61 .mode = 0644,
62 .proc_handler = proc_dointvec,
65 .procname = "tx_qlen",
66 .data = &sysctl_dccp_tx_qlen,
67 .maxlen = sizeof(sysctl_dccp_tx_qlen),
68 .mode = 0644,
69 .proc_handler = proc_dointvec,
72 .procname = "sync_ratelimit",
73 .data = &sysctl_dccp_sync_ratelimit,
74 .maxlen = sizeof(sysctl_dccp_sync_ratelimit),
75 .mode = 0644,
76 .proc_handler = proc_dointvec_ms_jiffies,
79 { .ctl_name = 0, }
82 static struct ctl_path dccp_path[] = {
83 { .procname = "net", .ctl_name = CTL_NET, },
84 { .procname = "dccp", .ctl_name = NET_DCCP, },
85 { .procname = "default", .ctl_name = NET_DCCP_DEFAULT, },
86 { }
89 static struct ctl_table_header *dccp_table_header;
91 int __init dccp_sysctl_init(void)
93 dccp_table_header = register_sysctl_paths(dccp_path,
94 dccp_default_table);
96 return dccp_table_header != NULL ? 0 : -ENOMEM;
99 void dccp_sysctl_exit(void)
101 if (dccp_table_header != NULL) {
102 unregister_sysctl_table(dccp_table_header);
103 dccp_table_header = NULL;