Date: Tue, 1 Jan 2008 03:36:20 +0100 From: Karsten Behrmann <BearPerson@gmx.net> To: freebsd-arch@freebsd.org Subject: Re: kernel features MIB Message-ID: <20080101033620.4050569c@Karsten.Behrmanns.Kasten> In-Reply-To: <4774DBB2.5060707@FreeBSD.org> References: <200712271704.44796.jhb@FreeBSD.org> <4774DBB2.5060707@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 Dec 2007 12:19:14 +0100, Kris Kennaway wrote: > John Baldwin wrote: >> One of the things we have at work is a kern.features sysctl MIB that contains >> nodes to indicate if a named feature is present. For example, on i386 we >> have kern.features.pae and we auto enable -DPAE for kernel modules if the >> currently running kernel is using PAE using that sysctl. >>[...] >> Any objections to the idea? > > I have wanted something like this for a long time. In ports land they > often need to know this kind of thing, e.g. is compat4x support enabled > in the kernel, etc. Hmm. But will everyone be running a kernel and system that the stuff they build will later run on? (when upgrading, or when building kernel and tools to be installed via NFS and pals) Mind, it could be a good heuristic for the common cases, and directly useful for some libraries, but I'm thinking that we may need some easily- accessible override knobs. I could be wrong, though. Karsten -- Open source is not about suing someone who sells your software. It is about being able to walk behind him, grinning, and waving free CDs with the equivalent of what he is trying to sell.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080101033620.4050569c>