Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2008 14:14:02 +0400
From:      pluknet <pluknet@gmail.com>
To:        "Luigi Rizzo" <rizzo@iet.unipi.it>
Cc:        current@freebsd.org
Subject:   Re: reading kernel tunables from userland ?
Message-ID:  <a31046fc0804230314y473a6423g242e637286794449@mail.gmail.com>
In-Reply-To: <20080423100759.GA37110@onelab2.iet.unipi.it>
References:  <20080423100759.GA37110@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

2008/4/23 Luigi Rizzo <rizzo@iet.unipi.it>:
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0804230314y473a6423g242e637286794449>