lkml.org 
[lkml]   [2011]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v1 0/3] param: configurable /sys/module/*/paramaters
Date
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



\
 
 \ /
  Last update: 2011-10-27 04:25    [W:0.133 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site