Commit 98a98115 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 initializer for net/rose/sysctl_net_rose.c

parent ede04d4c
...@@ -25,47 +25,139 @@ static int min_window[] = {1}, max_window[] = {7}; ...@@ -25,47 +25,139 @@ static int min_window[] = {1}, max_window[] = {7};
static struct ctl_table_header *rose_table_header; static struct ctl_table_header *rose_table_header;
static ctl_table rose_table[] = { static ctl_table rose_table[] = {
{NET_ROSE_RESTART_REQUEST_TIMEOUT, "restart_request_timeout", {
&sysctl_rose_restart_request_timeout, sizeof(int), 0644, NULL, .ctl_name = NET_ROSE_RESTART_REQUEST_TIMEOUT,
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer}, .procname = "restart_request_timeout",
{NET_ROSE_CALL_REQUEST_TIMEOUT, "call_request_timeout", .data = &sysctl_rose_restart_request_timeout,
&sysctl_rose_call_request_timeout, sizeof(int), 0644, NULL, .maxlen = sizeof(int),
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer}, .mode = 0644,
{NET_ROSE_RESET_REQUEST_TIMEOUT, "reset_request_timeout", .proc_handler = &proc_dointvec_minmax,
&sysctl_rose_reset_request_timeout, sizeof(int), 0644, NULL, .strategy = &sysctl_intvec,
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer}, .extra1 = &min_timer,
{NET_ROSE_CLEAR_REQUEST_TIMEOUT, "clear_request_timeout", .extra2 = &max_timer
&sysctl_rose_clear_request_timeout, sizeof(int), 0644, NULL, },
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer}, {
{NET_ROSE_NO_ACTIVITY_TIMEOUT, "no_activity_timeout", .ctl_name = NET_ROSE_CALL_REQUEST_TIMEOUT,
&sysctl_rose_no_activity_timeout, sizeof(int), 0644, NULL, .procname = "call_request_timeout",
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_idle, &max_idle}, .data = &sysctl_rose_call_request_timeout,
{NET_ROSE_ACK_HOLD_BACK_TIMEOUT, "acknowledge_hold_back_timeout", .maxlen = sizeof(int),
&sysctl_rose_ack_hold_back_timeout, sizeof(int), 0644, NULL, .mode = 0644,
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer}, .proc_handler = &proc_dointvec_minmax,
{NET_ROSE_ROUTING_CONTROL, "routing_control", .strategy = &sysctl_intvec,
&sysctl_rose_routing_control, sizeof(int), 0644, NULL, .extra1 = &min_timer,
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_route, &max_route}, .extra2 = &max_timer
{NET_ROSE_LINK_FAIL_TIMEOUT, "link_fail_timeout", },
&sysctl_rose_link_fail_timeout, sizeof(int), 0644, NULL, {
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_ftimer, &max_ftimer}, .ctl_name = NET_ROSE_RESET_REQUEST_TIMEOUT,
{NET_ROSE_MAX_VCS, "maximum_virtual_circuits", .procname = "reset_request_timeout",
&sysctl_rose_maximum_vcs, sizeof(int), 0644, NULL, .data = &sysctl_rose_reset_request_timeout,
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_maxvcs, &max_maxvcs}, .maxlen = sizeof(int),
{NET_ROSE_WINDOW_SIZE, "window_size", .mode = 0644,
&sysctl_rose_window_size, sizeof(int), 0644, NULL, .proc_handler = &proc_dointvec_minmax,
&proc_dointvec_minmax, &sysctl_intvec, NULL, &min_window, &max_window}, .strategy = &sysctl_intvec,
{0} .extra1 = &min_timer,
.extra2 = &max_timer
},
{
.ctl_name = NET_ROSE_CLEAR_REQUEST_TIMEOUT,
.procname = "clear_request_timeout",
.data = &sysctl_rose_clear_request_timeout,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &min_timer,
.extra2 = &max_timer
},
{
.ctl_name = NET_ROSE_NO_ACTIVITY_TIMEOUT,
.procname = "no_activity_timeout",
.data = &sysctl_rose_no_activity_timeout,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &min_idle,
.extra2 = &max_idle
},
{
.ctl_name = NET_ROSE_ACK_HOLD_BACK_TIMEOUT,
.procname = "acknowledge_hold_back_timeout",
.data = &sysctl_rose_ack_hold_back_timeout,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &min_timer,
.extra2 = &max_timer
},
{
.ctl_name = NET_ROSE_ROUTING_CONTROL,
.procname = "routing_control",
.data = &sysctl_rose_routing_control,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &min_route,
.extra2 = &max_route
},
{
.ctl_name = NET_ROSE_LINK_FAIL_TIMEOUT,
.procname = "link_fail_timeout",
.data = &sysctl_rose_link_fail_timeout,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &min_ftimer,
.extra2 = &max_ftimer
},
{
.ctl_name = NET_ROSE_MAX_VCS,
.procname = "maximum_virtual_circuits",
.data = &sysctl_rose_maximum_vcs,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &min_maxvcs,
.extra2 = &max_maxvcs
},
{
.ctl_name = NET_ROSE_WINDOW_SIZE,
.procname = "window_size",
.data = &sysctl_rose_window_size,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &min_window,
.extra2 = &max_window
},
{ .ctl_name = 0 }
}; };
static ctl_table rose_dir_table[] = { static ctl_table rose_dir_table[] = {
{NET_ROSE, "rose", NULL, 0, 0555, rose_table}, {
{0} .ctl_name = NET_ROSE,
.procname = "rose",
.maxlen = 0,
.mode = 0555,
.child = rose_table
},
{ .ctl_name = 0 }
}; };
static ctl_table rose_root_table[] = { static ctl_table rose_root_table[] = {
{CTL_NET, "net", NULL, 0, 0555, rose_dir_table}, {
{0} .ctl_name = CTL_NET,
.procname = "net",
.maxlen = 0,
.mode = 0555,
.child = rose_dir_table
},
{ .ctl_name = 0 }
}; };
void __init rose_register_sysctl(void) void __init rose_register_sysctl(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment