From owner-freebsd-current@FreeBSD.ORG Tue Jun 26 00:56:04 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3E4A1065675; Tue, 26 Jun 2012 00:56:04 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id E41AF8FC1A; Tue, 26 Jun 2012 00:56:03 +0000 (UTC) Received: by wibhr14 with SMTP id hr14so1370161wib.13 for ; Mon, 25 Jun 2012 17:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QgeuBGUjLNwUDnuLxZBzvHrr4KThw7B1+6YkTULL5TY=; b=JwR8HOXZ58ng96LqGYQSJc6fJyngqGIMcEg/b/dbBYw5C/R63yFj7kQ3KP3f4cGVT8 BR5sTsvTSzz5aEi3C1fnOxqSnr/CvWDo/V8MtA3aDo/f7+Eevb8DH3nCUPJT9BgaKK0R QUi9AoTtQTTMd3ffUR35fGKnC/Ik0WE0OPU31aPKLoYORsrf6KgHnwcfrAlWOSDLZu+N HHGply7vjlM0nzbtfvAC1/ADEKtRetDxKQIk34gOxQe9VxFjNd6AfwPr0ey3HYiCLUI1 0Cn8tofNuPnEg3NhROyEfo1/CBNyXL9OgJQuahXNklzY8kZbNToYtcPBpV6/KZNne9hV iMKQ== MIME-Version: 1.0 Received: by 10.180.14.165 with SMTP id q5mr28307170wic.8.1340672163041; Mon, 25 Jun 2012 17:56:03 -0700 (PDT) Received: by 10.216.214.101 with HTTP; Mon, 25 Jun 2012 17:56:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 25 Jun 2012 20:56:02 -0400 Message-ID: From: Arnaud Lacombe To: Adam Vande More Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Hackers , FreeBSD Current , kby@freebsd.org, bp@freebsd.org Subject: Re: sysctl filesystem ? 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: Tue, 26 Jun 2012 00:56:04 -0000 Hi, On Mon, Jun 25, 2012 at 8:30 PM, Adam Vande More wrote: > On Mon, Jun 25, 2012 at 7:03 PM, Arnaud Lacombe wrote: >> >> Hi folks, >> >> I find myself in a situation where I need to directly explore the >> sysctl(8) tree from my program. The tricky part is this: > > There is this: > > http://svnweb.freebsd.org/base/releng/4.7/sys/miscfs/kernfs/ > yes, `kernfs' is mentioned in some of the thread about a sysctl filesystem as a potential code base, and has been used in such purpose. However, if I can avoid to re-design that wheel too, by getting access to scfs(4) code, I will. - Arnaud > -- > Adam Vande More