Make msgseg, msgssz (->msgmax) and msgmni TUNABLE.

This commit is contained in:
Michael Reifenberger 2001-09-21 09:25:17 +00:00
parent ccf136a93f
commit 896de692f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83765

View File

@ -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");