diff options
Diffstat (limited to 'lib/test_sysctl.c')
-rw-r--r-- | lib/test_sysctl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/test_sysctl.c b/lib/test_sysctl.c index 53db3513ab08..3dd801c1c85b 100644 --- a/lib/test_sysctl.c +++ b/lib/test_sysctl.c | |||
@@ -42,6 +42,7 @@ static int i_one_hundred = 100; | |||
42 | struct test_sysctl_data { | 42 | struct test_sysctl_data { |
43 | int int_0001; | 43 | int int_0001; |
44 | int int_0002; | 44 | int int_0002; |
45 | int int_0003[4]; | ||
45 | 46 | ||
46 | unsigned int uint_0001; | 47 | unsigned int uint_0001; |
47 | 48 | ||
@@ -52,6 +53,11 @@ static struct test_sysctl_data test_data = { | |||
52 | .int_0001 = 60, | 53 | .int_0001 = 60, |
53 | .int_0002 = 1, | 54 | .int_0002 = 1, |
54 | 55 | ||
56 | .int_0003[0] = 0, | ||
57 | .int_0003[1] = 1, | ||
58 | .int_0003[2] = 2, | ||
59 | .int_0003[3] = 3, | ||
60 | |||
55 | .uint_0001 = 314, | 61 | .uint_0001 = 314, |
56 | 62 | ||
57 | .string_0001 = "(none)", | 63 | .string_0001 = "(none)", |
@@ -76,6 +82,13 @@ static struct ctl_table test_table[] = { | |||
76 | .proc_handler = proc_dointvec, | 82 | .proc_handler = proc_dointvec, |
77 | }, | 83 | }, |
78 | { | 84 | { |
85 | .procname = "int_0003", | ||
86 | .data = &test_data.int_0003, | ||
87 | .maxlen = sizeof(test_data.int_0003), | ||
88 | .mode = 0644, | ||
89 | .proc_handler = proc_dointvec, | ||
90 | }, | ||
91 | { | ||
79 | .procname = "uint_0001", | 92 | .procname = "uint_0001", |
80 | .data = &test_data.uint_0001, | 93 | .data = &test_data.uint_0001, |
81 | .maxlen = sizeof(unsigned int), | 94 | .maxlen = sizeof(unsigned int), |