From owner-freebsd-current@FreeBSD.ORG Wed Apr 23 10:42:03 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 D9B3F1065754 for ; Wed, 23 Apr 2008 10:42:03 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id B56738FC19 for ; Wed, 23 Apr 2008 10:42:02 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1069167nfb.33 for ; Wed, 23 Apr 2008 03:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=NA2PZ+x61FKiuAfMv7bhQZJcMXdJeZoustHiKRQ9dd8=; b=YNgUzDtWtf9A30RDzoKnJwDCm1YhmOMzf+XSFEgg6VvvFWGRXsA9dAHEfmU3NbMwHqb4w0a/mGNdh7nyYqjrQtgFxTAuRxX6pfziftWRVM0ruIykz5W53fJHesRHTB18B2jCcLq0DCaQ1OkWn1eKZvFNBXuVlALduScMvYgXe8c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RyQgaLwjXbLYCrGcgLrPDvBV9Wq40KZA6pbBfCRulEuFuTYeoAV7wPRzdB37Qe6rAS+d4gR8+r4OXJXeIdilCQYjToC1J3nssRfWNn6XQQ/t9V3Miqj9W2kyle264+0DwUfJ7HmX2sfYKIEFq6JGSqlDDwMMKD6nq3qsBAwFOeY= Received: by 10.78.189.5 with SMTP id m5mr777181huf.77.1208945642812; Wed, 23 Apr 2008 03:14:02 -0700 (PDT) Received: by 10.78.16.10 with HTTP; Wed, 23 Apr 2008 03:14:02 -0700 (PDT) Message-ID: Date: Wed, 23 Apr 2008 14:14:02 +0400 From: pluknet To: "Luigi Rizzo" In-Reply-To: <20080423100759.GA37110@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080423100759.GA37110@onelab2.iet.unipi.it> 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 10:42:03 -0000 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 ? wbr, pluknet