From 896de692f8dca8089b52005b3c579825724358f0 Mon Sep 17 00:00:00 2001 From: Michael Reifenberger Date: Fri, 21 Sep 2001 09:25:17 +0000 Subject: [PATCH] Make msgseg, msgssz (->msgmax) and msgmni TUNABLE. --- sys/kern/sysv_msg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 76bb22c7da40..a8262f777c6a 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -132,6 +132,11 @@ msginit() { register int i; + TUNABLE_INT_FETCH("kern.ipc.msgseg", &msginfo.msgseg); + TUNABLE_INT_FETCH("kern.ipc.msgssz", &msginfo.msgssz); + msginfo.msgmax = msginfo.msgseg * msginfo.msgssz; + TUNABLE_INT_FETCH("kern.ipc.msgmni", &msginfo.msgmni); + msgpool = malloc(msginfo.msgmax, M_MSG, M_WAITOK); if (msgpool == NULL) panic("msgpool is NULL");