Re: modinfo <modulename> question

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Justin Piszcz <jpiszcz@...>
Cc: <linux-kernel@...>
Date: Wednesday, September 5, 2007 - 1:09 pm

On Wed, 5 Sep 2007 12:34:13 -0400 (EDT) Justin Piszcz wrote:


If a "module" (whether built as a loadable module or builtin to the
kernel image) uses module_param() with a permission (or mode) field
that allows reading that parameter, then the parameter will show up
in /sys/module/<module>/parameters/<parameter>.

E.g., drivers/scsi/sg has these parameters listed and are readable
by anyone:

-rw-r--r-- 1 root root 4096 Sep  5 10:07 allow_dio
-rw-r--r-- 1 root root 4096 Sep  5 10:07 def_reserved_size
-rw-r--r-- 1 root root 4096 Sep  5 10:07 scatter_elem_sz

However, the st driver uses 0 for permission (mode), so none of its
parameters is visible.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
modinfo &lt;modulename&gt; question, Justin Piszcz, (Wed Sep 5, 12:34 pm)
Re: modinfo &lt;modulename&gt; question, Chris Snook, (Wed Sep 5, 3:55 pm)
Re: modinfo &lt;modulename&gt; question, Andreas Schwab, (Wed Sep 5, 1:17 pm)
Re: modinfo &lt;modulename&gt; question, Justin Piszcz, (Wed Sep 5, 1:31 pm)
Re: modinfo &lt;modulename&gt; question, Jan Engelhardt, (Thu Sep 6, 8:03 am)
Re: modinfo <modulename> question, Randy Dunlap, (Wed Sep 5, 1:09 pm)