Date: Fri, 30 Dec 2005 08:15:56 -0500 From: John Baldwin <jhb@freebsd.org> To: Pawel Jakub Dawidek <pjd@freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern kern_malloc.c src/sys/sys malloc.h src/sys/vm memguard.c memguard.h Message-ID: <200512300815.57417.jhb@freebsd.org> In-Reply-To: <200512301145.jBUBj7fW043290@repoman.freebsd.org> References: <200512301145.jBUBj7fW043290@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 30 December 2005 06:45 am, Pawel Jakub Dawidek wrote: > pjd 2005-12-30 11:45:07 UTC > > FreeBSD src repository > > Modified files: > sys/kern kern_malloc.c > sys/sys malloc.h > sys/vm memguard.c memguard.h > Log: > Improve memguard a bit: > - Provide tunable vm.memguard.desc, so one can specify memory type > without changing the code and recompiling the kernel. > - Allow to use memguard for kernel modules by providing sysctl > vm.memguard.desc, which can be changed to short description of memory > type before module is loaded. You don't actually need a sysctl for this case. You can use kenv to set a= =20 tunable after boot but before loading the module to achieve the same purpos= e. =20 E.g. 'kenv vm.memguard.desc=3DFOO' will work and TUNABLE_FETCH will find i= t=20 during a subsequent kldload. Just FYI. =2D-=20 John Baldwin <jhb@FreeBSD.org> =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512300815.57417.jhb>