From 5bbdbc7e928e1409628a52997281cc0cb52228e3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 27 Sep 2009 08:20:28 +0200 Subject: [PATCH] mq_overview.7: Change documented ranges for msg_max and msgsize_max Linux 2.6.28 changed the permissible ranges for these /proc files. Signed-off-by: Michael Kerrisk --- man7/mq_overview.7 | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/man7/mq_overview.7 b/man7/mq_overview.7 index a071072b2..4edc75466 100644 --- a/man7/mq_overview.7 +++ b/man7/mq_overview.7 @@ -23,7 +23,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.TH MQ_OVERVIEW 7 2009-07-25 "Linux" "Linux Programmer's Manual" +.TH MQ_OVERVIEW 7 2009-09-27 "Linux" "Linux Programmer's Manual" .SH NAME mq_overview \- Overview of POSIX message queues .SH DESCRIPTION @@ -146,9 +146,11 @@ This value acts as a ceiling on the .I attr\->mq_maxmsg argument given to .BR mq_open (3). -The default and minimum value for +The default value for .I msg_max -is 10; the upper limit is +is 10. +The minimum value is 1 (10 in kernels before 2.6.28). +The upper limit is .BR HARD_MAX : .IR "(131072\ /\ sizeof(void\ *))" (32768 on Linux/86). @@ -165,11 +167,15 @@ This value acts as a ceiling on the .I attr\->mq_msgsize argument given to .BR mq_open (3). -The default and minimum value for +The default value for .I msgsize_max -is 8192 bytes; the upper limit is -.B INT_MAX -(2147483647 on Linux/86). +is 8192 bytes. +The minimum value is 128 (8192 in kernels before 2.6.28). +The upper limit for +.I msgsize_max +is 1,048,576 (in kernels before 2.6.28, the upper limit was +.BR INT_MAX ; +that is, 2,147,483,647 on Linux/86). This limit is ignored for privileged processes .RB ( CAP_SYS_RESOURCE ). .TP