From owner-freebsd-current@FreeBSD.ORG Wed Apr 23 10:05:44 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 E7F311065672 for ; Wed, 23 Apr 2008 10:05:44 +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 AFCE68FC0A for ; Wed, 23 Apr 2008 10:05:44 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 9FD157318E; Wed, 23 Apr 2008 12:07:59 +0200 (CEST) Date: Wed, 23 Apr 2008 12:07:59 +0200 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20080423100759.GA37110@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: 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 10:05:45 -0000 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... thanks luigi