Re: do we have a generic string-number sysctl mapping library ?

2014-06-27 Thread Allan Jude
On 2014-06-27 05:50, Luigi Rizzo wrote: > On Fri, Jun 27, 2014 at 11:27:56AM +0200, Trond Endrest?l wrote: >> On Fri, 27 Jun 2014 11:14+0200, Luigi Rizzo wrote: >> >>> Hi, >>> I have frequently found myself using sysctls to control some kernel >>> feature where a string would be a better (and somet

Re: do we have a generic string-number sysctl mapping library ?

2014-06-27 Thread John Baldwin
On Friday, June 27, 2014 5:14:59 am Luigi Rizzo wrote: > Hi, > I have frequently found myself using sysctls to control some kernel > feature where a string would be a better (and sometimes the only) > option than using a numeric value, yet the internal representation > should be numeric for speed a

Re: do we have a generic string-number sysctl mapping library ?

2014-06-27 Thread Luigi Rizzo
On Fri, Jun 27, 2014 at 11:27:56AM +0200, Trond Endrest?l wrote: > On Fri, 27 Jun 2014 11:14+0200, Luigi Rizzo wrote: > > > Hi, > > I have frequently found myself using sysctls to control some kernel > > feature where a string would be a better (and sometimes the only) > > option than using a nume

Re: do we have a generic string-number sysctl mapping library ?

2014-06-27 Thread Trond Endrestøl
On Fri, 27 Jun 2014 11:14+0200, Luigi Rizzo wrote: > Hi, > I have frequently found myself using sysctls to control some kernel > feature where a string would be a better (and sometimes the only) > option than using a numeric value, yet the internal representation > should be numeric for speed and

do we have a generic string-number sysctl mapping library ?

2014-06-27 Thread Luigi Rizzo
Hi, I have frequently found myself using sysctls to control some kernel feature where a string would be a better (and sometimes the only) option than using a numeric value, yet the internal representation should be numeric for speed and robustness. Examples are the kern.timecounter, the default sch