Re: [PATCH 1/3] sysctl: Add range clamping intvec helper functions

2018-02-21 Thread Waiman Long
On 02/20/2018 06:41 PM, Luis R. Rodriguez wrote: > On Mon, Feb 19, 2018 at 11:53:49AM -0500, Waiman Long wrote: >> The current intvec range helper functions will fail with error when >> users try to assign an out-of-range value. > As designed. > >> The following new non-failing range helper

Re: [PATCH 1/3] sysctl: Add range clamping intvec helper functions

2018-02-21 Thread Waiman Long
On 02/20/2018 06:41 PM, Luis R. Rodriguez wrote: > On Mon, Feb 19, 2018 at 11:53:49AM -0500, Waiman Long wrote: >> The current intvec range helper functions will fail with error when >> users try to assign an out-of-range value. > As designed. > >> The following new non-failing range helper

Re: [PATCH 1/3] sysctl: Add range clamping intvec helper functions

2018-02-20 Thread Luis R. Rodriguez
On Mon, Feb 19, 2018 at 11:53:49AM -0500, Waiman Long wrote: > The current intvec range helper functions will fail with error when > users try to assign an out-of-range value. As designed. > The following new non-failing range helper functions are now added: > - proc_dointvec_clamp_minmax() >

Re: [PATCH 1/3] sysctl: Add range clamping intvec helper functions

2018-02-20 Thread Luis R. Rodriguez
On Mon, Feb 19, 2018 at 11:53:49AM -0500, Waiman Long wrote: > The current intvec range helper functions will fail with error when > users try to assign an out-of-range value. As designed. > The following new non-failing range helper functions are now added: > - proc_dointvec_clamp_minmax() >

[PATCH 1/3] sysctl: Add range clamping intvec helper functions

2018-02-19 Thread Waiman Long
The current intvec range helper functions will fail with error when users try to assign an out-of-range value. The following new non-failing range helper functions are now added: - proc_dointvec_clamp_minmax() - proc_douintvec_clamp_minmax() The new helper functions will clamp the value to

[PATCH 1/3] sysctl: Add range clamping intvec helper functions

2018-02-19 Thread Waiman Long
The current intvec range helper functions will fail with error when users try to assign an out-of-range value. The following new non-failing range helper functions are now added: - proc_dointvec_clamp_minmax() - proc_douintvec_clamp_minmax() The new helper functions will clamp the value to