diff options
author | Pavel Tikhomirov <ptikhomirov@virtuozzo.com> | 2016-07-04 10:47:00 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2016-08-01 16:51:33 +0300 |
commit | 3f976d59054fec7b104adaeb6195ae10b08cd09e (patch) | |
tree | 7358655afab69b9fe032094e06e191169f40dcb5 /images | |
parent | 99088d6b603538e68129b2c40dc46e68d1d23f1f (diff) |
ipc/sysctl: c/r fs.mqueue.msg_default fs.mqueue.msgsize_default
we already have 3/5 fs.mqueue.xxx sysctls so why not have all:
/proc/sys/fs/mqueue/msg_default is a read/write file for
setting/getting the default number of messages in a queue value
if attr parameter of mq_open(2) is NULL. If it exceed msg_max,
the default value is initialized msg_max.
/proc/sys/fs/mqueue/msgsize_default is a read/write file for
setting/getting the default message size value if attr parameter
of mq_open(2) is NULL. If it exceed msgsize_max, the default
value is initialized msgsize_max.
v2: remove check if kernel has sysctls as we do not support such an
old kernel(v3.5)
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'images')
-rw-r--r-- | images/ipc-var.proto | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/images/ipc-var.proto b/images/ipc-var.proto index b39cf7060..1cf34e7fe 100644 --- a/images/ipc-var.proto +++ b/images/ipc-var.proto @@ -13,4 +13,6 @@ message ipc_var_entry { required uint32 mq_queues_max = 10; required uint32 mq_msg_max = 11; required uint32 mq_msgsize_max = 12; + optional uint32 mq_msg_default = 13; + optional uint32 mq_msgsize_default = 14; } |