From owner-freebsd-current@FreeBSD.ORG Mon Jan 14 02:49:06 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4748816A418 for ; Mon, 14 Jan 2008 02:49:06 +0000 (UTC) (envelope-from mozolevsky@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id CCCF813C442 for ; Mon, 14 Jan 2008 02:49:05 +0000 (UTC) (envelope-from mozolevsky@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1171445uge.37 for ; Sun, 13 Jan 2008 18:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=X7Hg2HXSDl6ZT3UQTZq+otpWIi6/A8Iuj0B2HsfdksE=; b=mhDYZz00Wlm7kG6dzfI2SazPv1lEnWGnGfULmSxwPS9/kYrKy5+n/hwHvQhLO8nmFL0DJ2kbCzrbzMG2aEmlEu0F1rNYWslwt08e+3sWUVkYcjfdl0CoxXVcasSjzfE4ISzUtP3LyBNO7P5Dcd3/RpKrEE+qvB2lUhuGlrwjrvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=sgSbK+sq7lrilqfLcbMSTFU4pthLByH/3FHwJF9p7phpYovgQf5wpMRpxWw4eDYXccwTqBzj0oeX58cdRBneMYH2HM+JC72DkuhukqncfQSsYiQx5TL1o+J4QVrqaxZ1KIrCa+0Tf6QpEqgFREsV48OKsYPiilPtOph9S0Rpzc8= Received: by 10.67.22.2 with SMTP id z2mr2862465ugi.1.1200278944511; Sun, 13 Jan 2008 18:49:04 -0800 (PST) Received: by 10.66.248.11 with HTTP; Sun, 13 Jan 2008 18:49:04 -0800 (PST) Message-ID: Date: Mon, 14 Jan 2008 02:49:04 +0000 From: "Igor Mozolevsky" Sender: mozolevsky@gmail.com To: "Peter Wemm" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1200197787.67286.13.camel@shumai.marcuscom.com> <20080113064450.GW57756@deviant.kiev.zoral.com.ua> <20080113182457.GN929@server.vk2pj.dyndns.org> X-Google-Sender-Auth: 0c95099cf79191aa Cc: Kostik Belousov , Peter Jeremy , Joe Marcus Clarke , current Subject: Re: RFC: Adding a hw.features[2] sysctl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 02:49:06 -0000 On 14/01/2008, Peter Wemm wrote: > On Jan 13, 2008 5:21 PM, Igor Mozolevsky wrote: > > On 13/01/2008, Peter Jeremy 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