mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 21:09:28 +00:00
Make msgseg, msgssz (->msgmax) and msgmni TUNABLE.
This commit is contained in:
parent
ccf136a93f
commit
896de692f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83765
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user