Date: Mon, 14 Jan 2008 02:49:04 +0000 From: "Igor Mozolevsky" <igor@hybrid-lab.co.uk> To: "Peter Wemm" <peter@wemm.org> Cc: Kostik Belousov <kostikbel@gmail.com>, Peter Jeremy <peterjeremy@optushome.com.au>, Joe Marcus Clarke <marcus@freebsd.org>, current <current@freebsd.org> Subject: Re: RFC: Adding a hw.features[2] sysctl Message-ID: <a2b6592c0801131849u32e12e79m466ba45575dff5cf@mail.gmail.com> In-Reply-To: <e7db6d980801131844g2f88bf96te4b4beed5a144457@mail.gmail.com> References: <1200197787.67286.13.camel@shumai.marcuscom.com> <20080113064450.GW57756@deviant.kiev.zoral.com.ua> <20080113182457.GN929@server.vk2pj.dyndns.org> <a2b6592c0801131721w25afae5bg3dcf6a90c1a3d2b7@mail.gmail.com> <e7db6d980801131844g2f88bf96te4b4beed5a144457@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14/01/2008, Peter Wemm <peter@wemm.org> wrote: > On Jan 13, 2008 5:21 PM, Igor Mozolevsky <igor@hybrid-lab.co.uk> wrote: > > On 13/01/2008, Peter Jeremy <peterjeremy@optushome.com.au> wrote: > > > > > IMHO, no. Virtually all similar FreeBSD information is exported via > > > sysctl and this sort of information fits neatly into the existing > > > MIB tree as either dev.cpu.N.features or hw.cpu.features > > > > /dev/sndstat? > > That is a special case. It was an externally defined API that we > needed to be compatible with. OSS ran on everything from Linux to SVR4 > to FreeBSD at the time. It's the question of where you really want to do the parsing - would you rather the programmer had a simple API that they could query and deal with a boolean result, or would you rather have everyone who wanted to use the feature write their own parser for whatever (loosely formatted value; who known when we'll have features3, features4 and so on) sysctl returned? :-/ Igor
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a2b6592c0801131849u32e12e79m466ba45575dff5cf>