From owner-freebsd-current@FreeBSD.ORG Wed Apr 23 11:47:51 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 CBB8B1065673 for ; Wed, 23 Apr 2008 11:47:51 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 8665F8FC26 for ; Wed, 23 Apr 2008 11:47:51 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 6EF577318E; Wed, 23 Apr 2008 13:50:06 +0200 (CEST) Date: Wed, 23 Apr 2008 13:50:06 +0200 From: Luigi Rizzo To: pluknet Message-ID: <20080423115006.GA37818@onelab2.iet.unipi.it> References: <20080423100759.GA37110@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org Subject: Re: reading kernel tunables from userland ? 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: Wed, 23 Apr 2008 11:47:51 -0000 On Wed, Apr 23, 2008 at 02:14:02PM +0400, pluknet wrote: > Hello, > > 2008/4/23 Luigi Rizzo : > > sorry for the possibly naive question, but is there > > a way other than sysctl to read the value of kernel 'tunable' > > variables ? > > > > E.g. in if_nfe.c i see > > > > TUNABLE_INT("hw.nfe.msi_disable", &msi_disable); > > TUNABLE_INT("hw.nfe.msix_disable", &msix_disable); > > TUNABLE_INT("hw.nfe.jumbo_disable", &jumbo_disable); > > > > but sysctl is reporting none of them. > > > > I seem to remember that there was a separate command to access > > kernel tunables, > > but cannot remember which one, and neither 'man -k tunable' > > nor a google search return any useful answer... > > Perhaps are you about kenv ? yes, thanks...