linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] param: configurable /sys/module/*/paramaters
@ 2011-10-27  2:22 David Decotigny
  2011-10-27  2:22 ` [PATCH v1 1/3] param: make destroy_params() private David Decotigny
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Decotigny @ 2011-10-27  2:22 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rusty Russell, Randy Dunlap, Michal Schmidt, Linus Walleij,
	David Decotigny

These changes allow to compile kernels with sysfs but without
/sys/module/*/paramaters/. This should allow:
 - on small systems: no memory pressure caused by unneeded sysfs
   attributes.
 - on large systems: more modules could be converted to have their
   perm != 0 in module_param(): better for audit, debug, etc. For
   example, on my copy, 1658 module attributes have perm == 0,
   presumably to spare some memory, but it can be interesting to have
   access to those at runtime.

By default, /sys/module/*/paramaters/ is enabled, but can be disabled
in expert mode (CONFIG_SYSFS_MODULE_PARAM is not set).

David Decotigny (3):
  param: make destroy_params() private
  param: simple refactoring
  param: allow to selectively enable /sys/module/MOD/paramaters nodes

 fs/sysfs/Kconfig            |   15 ++++++-
 include/linux/moduleparam.h |   14 +-----
 kernel/module.c             |    9 ++++
 kernel/params.c             |  108 +++++++++++++++++++++----------------------
 4 files changed, 77 insertions(+), 69 deletions(-)

-- 
1.7.3.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-31  6:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27  2:22 [PATCH v1 0/3] param: configurable /sys/module/*/paramaters David Decotigny
2011-10-27  2:22 ` [PATCH v1 1/3] param: make destroy_params() private David Decotigny
2011-10-27  2:22 ` [PATCH v1 2/3] param: simple refactoring David Decotigny
2011-10-27  2:22 ` [PATCH v1 3/3] param: allow to selectively enable /sys/module/MOD/paramaters nodes David Decotigny
2011-10-31  1:42   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).