14 #include <linux/sysctl.h>
16 #ifdef CONFIG_PROC_SYSCTL
19 char *which = table->
data;
21 which = (which - (
char *)&
init_ipc_ns) + (
char *)ipc_ns;
26 void __user *
buffer,
size_t *lenp, loff_t *ppos)
29 memcpy(&mq_table, table,
sizeof(mq_table));
30 mq_table.data = get_mq(table);
36 #define proc_mq_dointvec_minmax NULL
39 static int msg_queues_limit_min = MIN_QUEUESMAX;
40 static int msg_queues_limit_max = HARD_QUEUESMAX;
42 static int msg_max_limit_min = MIN_MSGMAX;
43 static int msg_max_limit_max = HARD_MSGMAX;
45 static int msg_maxsize_limit_min = MIN_MSGSIZEMAX;
46 static int msg_maxsize_limit_max = HARD_MSGSIZEMAX;
52 .maxlen =
sizeof(
int),
55 .
extra1 = &msg_queues_limit_min,
56 .
extra2 = &msg_queues_limit_max,
59 .procname =
"msg_max",
61 .maxlen =
sizeof(
int),
64 .
extra1 = &msg_max_limit_min,
65 .
extra2 = &msg_max_limit_max,
68 .procname =
"msgsize_max",
70 .maxlen =
sizeof(
int),
73 .
extra1 = &msg_maxsize_limit_min,
74 .
extra2 = &msg_maxsize_limit_max,
77 .procname =
"msg_default",
79 .maxlen =
sizeof(
int),
82 .
extra1 = &msg_max_limit_min,
83 .
extra2 = &msg_max_limit_max,
86 .procname =
"msgsize_default",
88 .maxlen =
sizeof(
int),
91 .
extra1 = &msg_maxsize_limit_min,
92 .
extra2 = &msg_maxsize_limit_max,
110 .child = mq_sysctl_dir,