Subject: How do I change the size of msgbuf? (dmesg buffer)
To: None <tech-kern@netbsd.org>
From: None <patrick@klos.com>
List: tech-kern
Date: 12/10/2007 10:51:36
Hello NetBSD kernel gurus,
I am in the midst of porting a driver from FreeBSD to NetBSD. It would
be real helpful if I could increase the size of the DMESG buffer (msgbuf).
I'm building/testing under the AMD64 platform. I found 'msgbuf_p_cnt' in
/usr/src/sys/arch/amd64/amd64/machdep.c which appears to be what controls
the size of msgbuf, but it's initialized to 0 and I don't see it ever set
or referenced anyplace else in the kernel! Obviously, I'm missing something.
I even tried adding the line 'kern.msgbufsize=131000' to /etc/sysctl.conf
and rebooting, but the size always shows up at 16352. What am I not seeing??
Thanks,
Patrick Klos
========= For LAN/WAN Protocol Analysis, check out PacketView Pro! =========
Patrick Klos Email: patrick@klos.com
Network/Embedded Software Engineer Web: http://www.klos.com/
Klos Technologies, Inc. Phone: 603-714-0195
============================================================================