The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=acb7a4deb21a4cdfbb9bbf703b42a377450b9fdd

commit acb7a4deb21a4cdfbb9bbf703b42a377450b9fdd
Author:     Ricardo Branco <rbra...@suse.de>
AuthorDate: 2024-05-12 10:30:46 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2024-05-23 19:40:45 +0000

    mqueue: Add sysctl for default_maxmsg & default_msgsize and fix descriptions
    
    Reviewed by: imp, kib
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1248
---
 sys/kern/uipc_mqueue.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c
index 7779d8877337..2efdfc9dd04c 100644
--- a/sys/kern/uipc_mqueue.c
+++ b/sys/kern/uipc_mqueue.c
@@ -200,14 +200,18 @@ static SYSCTL_NODE(_kern, OID_AUTO, mqueue, CTLFLAG_RW | 
CTLFLAG_MPSAFE, 0,
        "POSIX real time message queue");
 
 static int     default_maxmsg  = 10;
+SYSCTL_INT(_kern_mqueue, OID_AUTO, default_maxmsg, CTLFLAG_RD,
+    &default_maxmsg, 0, "Default maximum messages in queue");
 static int     default_msgsize = 1024;
+SYSCTL_INT(_kern_mqueue, OID_AUTO, default_msgsize, CTLFLAG_RD,
+    &default_msgsize, 0, "Default maximum message size");
 
 static int     maxmsg = 100;
 SYSCTL_INT(_kern_mqueue, OID_AUTO, maxmsg, CTLFLAG_RW,
-    &maxmsg, 0, "Default maximum messages in queue");
+    &maxmsg, 0, "maximum messages in queue");
 static int     maxmsgsize = 16384;
 SYSCTL_INT(_kern_mqueue, OID_AUTO, maxmsgsize, CTLFLAG_RW,
-    &maxmsgsize, 0, "Default maximum message size");
+    &maxmsgsize, 0, "maximum message size");
 static int     maxmq = 100;
 SYSCTL_INT(_kern_mqueue, OID_AUTO, maxmq, CTLFLAG_RW,
     &maxmq, 0, "maximum message queues");

Reply via email to