addition of sysctl nodes after compile time

Constantine A. Murenin mureninc at gmail.com
Wed Oct 20 08:10:22 UTC 2010


On 19 October 2010 16:36, Alexander Best <arundel at freebsd.org> wrote:
> hi there,
>
> i stumbled upon this note in the BUGS section of the cd(4) manual:
>
>    "There is no mechanism currently to set different minimum and maximum
>     timeouts for different CD changers; the timeout values set by the kernel
>     options or the sysctl variables apply to all LUN-based CD changers in the
>     system.  It is possible to implement such support, but the sysctl imple-
>     mentation at least would be rather inelegant, because of the current
>     inability of the sysctl code to handle the addition of nodes after com-
>     pile time.  Thus, it would take one dynamically sized sysctl variable and
>     a userland utility to get/set the timeout values.  Implementation of sep-
>     arate timeouts for different CD devices in the kernel config file would
>     likely require modification of config(8) to support the two timeouts when
>     hardwiring cd devices."
>
> does this limitation still exist?
>
> cheers.
> alex

No, the limitation is no longer present.  See sysctl_add_oid(9) for
more details.

C.


More information about the freebsd-hackers mailing list