Bug 5074 - /sys/module/*/parameters/* not working
Summary: /sys/module/*/parameters/* not working
Status: RESOLVED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Modules (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: other_modules
URL:
Keywords:
Depends on:
Blocks:
 
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: 2.6.11.11
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

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
writable.

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
/sys/module/dvb_core/parameters/dvbdev_debug

(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
expected:

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



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.