Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 19:51:35 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        John Baldwin <jhb@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r330711 - head/sbin/sysctl
Message-ID:  <62e6ac8a-90d0-4877-9303-7a61ee192b0a@selasky.org>
In-Reply-To: <201803092337.w29NbJSX093826@repo.freebsd.org>
References:  <201803092337.w29NbJSX093826@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/10/18 00:37, John Baldwin wrote:
> Author: jhb
> Date: Fri Mar  9 23:37:19 2018
> New Revision: 330711
> URL: https://svnweb.freebsd.org/changeset/base/330711
> 
> Log:
>    Permit sysctl(8) to set an array of numeric values for a single node.
>    
>    Most sysctl nodes only return a single value, but some nodes return an
>    array of values (e.g. kern.cp_time).  sysctl(8) understand how to display
>    the values of a node that returns multiple values (it prints out each
>    numeric value separated by spaces).  However, until now sysctl(8) has
>    only been able to set sysctl nodes to a single value.  This change
>    allows sysctl to accept a new value for a numeric sysctl node that contains
>    multiple values separated by either spaces or commas.  sysctl(8) parses
>    this list into an array of values and passes the array as the "new" value
>    to sysctl(2).

Hi,

Was support added to handle such settings through the kernel environment 
aswell, like /boot/loader.conf. See the XXX_RWTUN and XXX_RDTUN flags 
for sysctls.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62e6ac8a-90d0-4877-9303-7a61ee192b0a>