sysctl.c (597473720f4dc69749542bfcfed4a927a43d935e) sysctl.c (eec4844fae7c033a0c1fc1eb3b8517aeb8b6cc49)
1/*
2 * net/tipc/sysctl.c: sysctl interface to TIPC subsystem
3 *
4 * Copyright (c) 2013, Wind River Systems
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 24 unchanged lines hidden (view full) ---

33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#include "core.h"
37#include "trace.h"
38
39#include <linux/sysctl.h>
40
1/*
2 * net/tipc/sysctl.c: sysctl interface to TIPC subsystem
3 *
4 * Copyright (c) 2013, Wind River Systems
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 24 unchanged lines hidden (view full) ---

33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#include "core.h"
37#include "trace.h"
38
39#include <linux/sysctl.h>
40
41static int zero;
42static int one = 1;
43static struct ctl_table_header *tipc_ctl_hdr;
44
45static struct ctl_table tipc_table[] = {
46 {
47 .procname = "tipc_rmem",
48 .data = &sysctl_tipc_rmem,
49 .maxlen = sizeof(sysctl_tipc_rmem),
50 .mode = 0644,
51 .proc_handler = proc_dointvec_minmax,
41static struct ctl_table_header *tipc_ctl_hdr;
42
43static struct ctl_table tipc_table[] = {
44 {
45 .procname = "tipc_rmem",
46 .data = &sysctl_tipc_rmem,
47 .maxlen = sizeof(sysctl_tipc_rmem),
48 .mode = 0644,
49 .proc_handler = proc_dointvec_minmax,
52 .extra1 = &one,
50 .extra1 = SYSCTL_ONE,
53 },
54 {
55 .procname = "named_timeout",
56 .data = &sysctl_tipc_named_timeout,
57 .maxlen = sizeof(sysctl_tipc_named_timeout),
58 .mode = 0644,
59 .proc_handler = proc_dointvec_minmax,
51 },
52 {
53 .procname = "named_timeout",
54 .data = &sysctl_tipc_named_timeout,
55 .maxlen = sizeof(sysctl_tipc_named_timeout),
56 .mode = 0644,
57 .proc_handler = proc_dointvec_minmax,
60 .extra1 = &zero,
58 .extra1 = SYSCTL_ZERO,
61 },
62 {
63 .procname = "sk_filter",
64 .data = &sysctl_tipc_sk_filter,
65 .maxlen = sizeof(sysctl_tipc_sk_filter),
66 .mode = 0644,
67 .proc_handler = proc_doulongvec_minmax,
68 },

--- 15 unchanged lines hidden ---
59 },
60 {
61 .procname = "sk_filter",
62 .data = &sysctl_tipc_sk_filter,
63 .maxlen = sizeof(sysctl_tipc_sk_filter),
64 .mode = 0644,
65 .proc_handler = proc_doulongvec_minmax,
66 },

--- 15 unchanged lines hidden ---