Re: [PATCH] drivers/net/pcmcia: use module_param() instead of MODULE_PARM()

From: Dominik Brodowski
Date: Sat Nov 13 2004 - 17:46:49 EST


On Wed, Nov 10, 2004 at 10:21:32PM +0100, Stelian Pop wrote:
> If module parameters are a memory issue

module paramters, independent of exporting into sysfs [and they're not
free'd on init!] need 56 bytes per module, and 20 + sizeof(name of
parameter) bytes per module parameter.

If they're exported to sysfs, the first one per module costs 66, all other
ones 10 bytes. So exporting to sysfs is cheap.

Dominik
-
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/