Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: module auto-unload



On Sun, Dec 15, 2013 at 11:00:43AM -0800, Paul Goyette wrote:
>  static void
>  sysctl_module_setup(void)
>  {
> @@ -433,10 +456,16 @@ sysctl_module_setup(void)
>               CTL_CREATE, CTL_EOL);
>       sysctl_createv(&module_sysctllog, 0, &node, NULL,
>               CTLFLAG_PERMANENT | CTLFLAG_READWRITE,
> -             CTLTYPE_BOOL, "verbose",
> +             CTLTYPE_BOOL, "autotime",
>               SYSCTL_DESCR("Enable verbose output"),
>               NULL, 0, &module_verbose_on, 0,
>               CTL_CREATE, CTL_EOL);
> +     sysctl_createv(&module_sysctllog, 0, &node, NULL,
> +             CTLFLAG_PERMANENT | CTLFLAG_READWRITE,
> +             CTLTYPE_INT, "verbose",
> +             SYSCTL_DESCR("Auto-unload delay"),
> +             sysctl_module_autotime, 0, &module_autotime, 0,
> +             CTL_CREATE, CTL_EOL);

Verbose is now int and autotime is bool?

- Jukka.


Home | Main Index | Thread Index | Old Index