Skip to contentSkip to conversation

kernel module parameter

DISCUSSION Simon Leung 2 participants 5 messages Jan 18, 2012

lore
Share & tools
lore
#0 lore raw

Hi all,

Is there a way to find out what parameters were used when loading the kernel module. E.g. After loading the driver with 'insmode foo.ko param1=bla'. How can find out later on about those parameter?

Thanks,

#1 lore raw
$ ls /sys/module/MODULE_NAME/parameters/
Quoted 15 lines · Simon Leung

Hi all,

Is there a way to find out what parameters were used when loading the kernel module. E.g. After loading the driver with 'insmode foo.ko param1=bla'. How can find out later on about those parameter?

Thanks,

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 4 lines
/manohar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120118/afebcb00/attachment.html 
#2 lore raw

Thanks. When was this interface introduced? I can't find it on my system but my kernel is a bit old.

Quoted 26 lines · Manohar Vanga
$ ls /sys/module/MODULE_NAME/parameters/

On Wed, Jan 18, 2012 at 4:20 PM, Simon Leung <[email protected] <mailto:[email protected]>> wrote:

Hi all,

Is there a way to find out what parameters were used when loading the kernel module. E.g. After loading the driver with 'insmode foo.ko param1=bla'. How can find out later on about those parameter?

Thanks,

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
<mailto:[email protected]>
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 1 line
/manohar
#3 lore raw

Hey Simon,

I found this: http://lwn.net/Articles/85654/
Does that help?

Quoted 38 lines · Simon Leung

Thanks. When was this interface introduced? I can't find it on my system but my kernel is a bit old.

Quoted 29 lines · Manohar Vanga
$ ls /sys/module/MODULE_NAME/**parameters/

On Wed, Jan 18, 2012 at 4:20 PM, Simon Leung <[email protected] <mailto:
simonleung at gmx.com>> wrote:

Hi all,

Is there a way to find out what parameters were used when loading the kernel module. E.g. After loading the driver with 'insmode foo.ko param1=bla'. How can find out later on about those parameter?

Thanks,

______________________________**_________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.**org <[email protected]> <mailto:Kernelnewbies@**kernelnewbies.org<[email protected]>

Quoted 1 line

http://lists.kernelnewbies.**org/mailman/listinfo/**kernelnewbies<http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies>

--
/manohar

Signature · 4 lines
/manohar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120118/a5a0f819/attachment.html 
#4 lore raw

My kernel is 2.6.21. I can see /sys/modules/... but there is no parameter directory.

Thanks,

Quoted 60 lines · Manohar Vanga

Hey Simon,

I found this: http://lwn.net/Articles/85654/
Does that help?

On Wed, Jan 18, 2012 at 4:29 PM, Simon Leung <[email protected] <mailto:[email protected]>> wrote:

Thanks. When was this interface introduced? I can't find it on my system but my kernel is a bit old.

On 18/01/12 15:26, Manohar Vanga wrote:

$ ls /sys/module/MODULE_NAME/parameters/

On Wed, Jan 18, 2012 at 4:20 PM, Simon Leung <simonleung at gmx.com <mailto:[email protected]> <mailto:simonleung at gmx.com <mailto:[email protected]>>> wrote:

Hi all,

Is there a way to find out what parameters were used when
loading the
kernel module. E.g. After loading the driver with 'insmode
foo.ko
param1=bla'. How can find out later on about those parameter?

Thanks,

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

--
/manohar

Signature · 7 lines
/manohar


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies