Re: [patch 1/1] nbd: Don't create all MAX_NBD devices by default all the time

From: Domen Puncer
Date: Thu Apr 14 2005 - 17:58:55 EST


On 14/04/05 13:23 +0200, Lars Marowsky-Bree wrote:
> From: Lars Marowsky-Bree <lmb@xxxxxxx>
>
> This patches adds the "nbds_max" parameter to the nbd kernel module,
> which limits the number of nbds allocated. Previously, always all 128
> entries were allocated unconditionally, which used to waste resources
> and needlessly flood the hotplug system with events. (Defaults to 16
> now.)
>
...
>
> +module_param(nbds_max, int, 16);

This is permissions in sysfs (or 0 if no file is to be created).

> +MODULE_PARM_DESC(nbds_max, "How many network block devices to initialize.");
> #ifndef NDEBUG
> module_param(debugflags, int, 0644);
> MODULE_PARM_DESC(debugflags, "flags for controlling debug output");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/