From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 11 04:28:59 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73F681065673 for ; Fri, 11 Jun 2010 04:28:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 33F7C8FC15 for ; Fri, 11 Jun 2010 04:28:58 +0000 (UTC) Received: by iwn7 with SMTP id 7so940017iwn.13 for ; Thu, 10 Jun 2010 21:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=eSEYJ7q+aQy6ni34FSp911YqcgpF6WBmELx/4OWN4XQ=; b=XVkYPlJt0tgWoTQILSGiDucqcmQB6WEzVStToR+Bbjpg9e5sXC5LsG0B51XVE8m596 T1qBIr5QH7GdN/Y7GY4NuSYXm6ILO2iRSr5o1iP4AbxkPkbkfad3lEGVC0Z/knrtdyii qX3ToRjIv6TTdjWwGJo0RQMf69mKBB2XU9wNk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=nA1P9tYPi5Ba4XIvMkzvmSIOCzp3skTXCcU7iznYIfUguKGkgOW6WvjRKV5qa44N5V HHzg0RTWCQIQ2K723GXwwpJQRWhomL/39xCFnegE4MCi9UF25qol13Ene5R+ouxpSSbe 7QEcZRR2t7CMDL407KnfeMuP+HE1AjDpe1tmM= MIME-Version: 1.0 Received: by 10.231.157.205 with SMTP id c13mr1248977ibx.53.1276230538331; Thu, 10 Jun 2010 21:28:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.231.156.76 with HTTP; Thu, 10 Jun 2010 21:28:58 -0700 (PDT) In-Reply-To: <20100610160109.19585782fyr3buw4@webmail.leidinger.net> References: <20100609121453.095d92b4@kibab.com> <4C0F9394.9030202@dataix.net> <20100609132543.GI83316@deviant.kiev.zoral.com.ua> <20100610101801.742fac25@ernst.jennejohn.org> <20100610160109.19585782fyr3buw4@webmail.leidinger.net> Date: Fri, 11 Jun 2010 12:28:58 +0800 X-Google-Sender-Auth: PthJ03921zmJt0kenjAioawZiO4 Message-ID: From: Adrian Chadd To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Cc: Kostik Belousov , freebsd-hackers@freebsd.org, Ilya Bakulin , Garrett Cooper Subject: Re: GSoC: registration of optional kernel features via sysctl: a question to the community X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 04:28:59 -0000 How about exposing a simple userspace API for doing this, rather than doing it via sysctl? That way you could "simply" tie alternative overrides in as needed for builds (eg, environment variables setting overrides; and/or pointing to a configuration file with such) but not affect any runtime detection the rest of the system is doing. Adrian