Bug 5074 - /sys/module/*/parameters/* not working
/sys/module/*/parameters/* not working
Product: Other
Classification: Unclassified
Component: Modules
i386 Linux
: P2 normal
Assigned To: other_modules
Depends on:
  Show dependency treegraph
Reported: 2005-08-16 09:03 UTC by Andre Draszik
Modified: 2006-03-24 18:33 UTC (History)
2 users (show)

See Also:
Kernel Version:
Tree: Mainline
Regression: ---


Description Andre Draszik 2005-08-16 09:03:09 UTC
Problem Description:
when loadable module support is disabled in the kernel's config, accessing
/sys/module/*/parameters/* is not possible, files in there are neither read- nor

e.g. (as root):
# cat /sys/module/dvb_core/parameters/dvbdev_debug
cat: /sys/module/dvb_core/parameters/dvbdev_debug: Permission denied
# echo 0 > /sys/module/dvb_core/parameters/dvbdev_debug
-sh: cannot create /sys/module/dvb_core/parameters/dvbdev_debug: Permission denied

# ls -lA /sys/module/dvb_core/parameters/dvbdev_debug
-rw-r--r--    1 root     root         4096 Jan  1 00:03

(this is not particular to the smc91x driver, this works with no driver)

after adding module support to the kernel (CONFIG_MODULE=y), everything works as

# cat /sys/module/dvb_core/parameters/dvbdev_debug
# echo 1 > /sys/module/dvb_core/parameters/dvbdev_debug
# cat /sys/module/dvb_core/parameters/dvbdev_debug

Steps to reproduce:
disable module support from kernel config
Comment 1 Andre Draszik 2005-08-16 09:05:19 UTC
ups, replace smc91x by dvb_core in the text, of course (copy/paste error...) sorry!
Comment 2 Adrian Bunk 2006-03-24 07:13:25 UTC
This sounds like a bug that was fixed in 2.6.15.

Can you confirm that it is fixed?
Comment 3 Greg Kroah-Hartman 2006-03-24 18:33:52 UTC
Yeah, this was fixed a while ago.

If it's still a problem for you, please reopen.

Note You need to log in before you can comment on or make changes to this bug.