Problem with module parameters and sysfs
Hi,
It seems that the following patch
broke module parameters in sysfs for the case when driver is built as a module:
[root@core dtor]# ls -la /sys/module/i8042/
total 0
drwxr-xr-x 3 root root 0 Oct 26 19:20 . drwxr-xr-x 54 root root 0 Oct 27 00:28 .. drwxr-xr-x 2 root root 0 Oct 26 19:20 parameters
[root@core dtor]# ls -la /sys/module/psmouse/
total 0
drwxr-xr-x 3 root root 0 Oct 27 00:21 . drwxr-xr-x 54 root root 0 Oct 27 00:28 .. -r--r--r-- 1 root root 4096 Oct 27 00:21 refcnt drwxr-xr-x 2 root root 0 Oct 27 00:21 sections
psmouse is built as a module while i8042 is compiled in.
Signature · 1 line
Dmitry
Quoted 15 lines · Dmitry Torokhov
Hi,
It seems that the following patch
broke module parameters in sysfs for the case when driver is built as a module:
[root@core dtor]# ls -la
/sys/module/i8042/
total 0drwxr-xr-x 3 root root 0 Oct 26 19:20 . drwxr-xr-x 54 root root 0 Oct 27 00:28 .. drwxr-xr-x 2 root root 0 Oct 26 19:20 parameters
Quoted 8 lines
[root@core dtor]# ls -la
/sys/module/psmouse/
total 0drwxr-xr-x 3 root root 0 Oct 27 00:21 . drwxr-xr-x 54 root root 0 Oct 27 00:28 .. -r--r--r-- 1 root root 4096 Oct 27 00:21 refcnt drwxr-xr-x 2 root root 0 Oct 27 00:21 sectionspsmouse is built as a module while i8042 is compiled in.
All module_params I can see in psmouse have permission "0", so they don't need to be exported in sysfs. Or am I missing something here?
Thanks,
Dominik
Quoted 7 lines · Dominik Brodowski
Quoted 6 lines · Dmitry Torokhov
total 0
drwxr-xr-x 3 root root 0 Oct 27 00:21 . drwxr-xr-x 54 root root 0 Oct 27 00:28 .. -r--r--r-- 1 root root 4096 Oct 27 00:21 refcnt drwxr-xr-x 2 root root 0 Oct 27 00:21 sections
Quoted 5 lines
Quoted 1 line
psmouse is built as a module while i8042 is compiled in.
All
module_paramsI can see in psmouse have permission "0", so they don't need to be exported in sysfs. Or am I missing something here?
Ahem... Hand me that paper bag please...
Sorry for the noise, I did not find the params directory and assumed that something went wrong without even thinking about permissions.
Signature · 1 line
Dmitry