How do I list kernel module parameter values?

Thread Tools Search this Thread
# 1  
How do I list kernel module parameter values?

I have problem with parameter configuration.
My question is after the configuration, how to check if successfully change the value or not?

I saw someone has the same question, and followed his steps.
Original thread:

Which macL mentioned that:
I am working with the igb driver, and need to know the status of the InterruptThrottleRate. dmseg prints a message saying it is off.
I use the following command:
dmesg -n 8
modprobe igb InterruptThrottleRate=0

Though the dmesg didn't show any message related to what macL saw.
Is there any step wrong or missing during the command?

Last edited by methyl; 09-13-2012 at 06:08 PM.. Reason: fix url, add code tags
# 2  
try this:
# parm.shl  display kernel module parameters
# usage ./parm.shl [module name]

# set module or modules to display
default=' '  # display all modules
[ $# -eq 1 ] && default="$1"  # display one module

# get a list of modules
fgrep "$default" /proc/modules | awk '{print $1}' > mod.lis

# process list of modules
while read module
  printf "%s %s\n" "Module:" "$module"
  # is there a parameter directory
  [ ! -d "dir" ] && printf "\t%s\n" 'No parameters' && continue
  # display the content
  ls "$dir" | while read parameter 
     printf "\t%s %s\n" "$parameter -->"  "$(cat ${dir}/${parameter} )"
done < mod.lis

# 3  
After execution, I get "No parameters" for all modules
And it displayed "rm.shl command not find" at first line
I set [module name]=igb

Is anyone has further information about it? Thanks...
# 4  
Please post the script you ran and the command line you typed to run the script. If you got error messages, please post the exact error messages verbatim.
Please also post what Operating System and version you are running and what Shell you use.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Science: Gadgets
Difficulty: Easy
The communication protocol NFC stands for Near-Field Control.
True or False?

10 More Discussions You Might Find Interesting

1. Linux

Unload kernel module at boot time (Debian Wheezy 7.2, 3.2.0-4-686-pae kernel)

Hi everyone, I am trying to prevent the ehci_hcd kernel module to load at boot time. Here's what I've tried so far: 1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here): 2) Blacklisted the module by adding the following string to 3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies

2. UNIX for Advanced & Expert Users

Kernel Module Debugging

Question may seem illogical but I still need clarification. Can we debug kernel modules loaded on my target system using kdb / kgdb without using any other system or remote debugging? In other words my question is can we use kdb/kgdb to debug kernel modules running on same system? (2 Replies)
Discussion started by: rupeshkp728
2 Replies

3. Linux

kernel module parameters

Hi, if I install a module with specific parameter, will this parameters applied next time system boots? for exampe, I want to disable InterruptThrottleRate modprobe e1000e InterruptThrottleRate=0 Is this parameter apllied only for this run, or this module will always use this parameter when... (2 Replies)
Discussion started by: Shedon
2 Replies

4. Solaris

Loading Kernel module at boot

Is there any link/tutorial on loading Solaris kernel modules at boot time?? (0 Replies)
Discussion started by: unisolin
0 Replies

5. Solaris

Which file is read by kernel to set its default system kernel parameters values?

Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies

6. UNIX for Advanced & Expert Users

Kernel module compilation problem

I have one big module 2.6.18 kernel mod.c I want to divide this to several files. The problem is to write right Makefile lib1.h lib1.c mod.c mod.c works fine normally but when I divide into several files and try to compile with this makefile obj-m := mod.o mod-objs := lib1.o ... (3 Replies)
Discussion started by: marcintom
3 Replies

7. IP Networking

kernel module

Hi All, I need to develop a kernel module which changes the IP address of a package according to its mac address. It would be a sort of L2 Nat. Somebody know if I can do this using netfilter?? Thanks. (2 Replies)
Discussion started by: lagigliaivan
2 Replies

8. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies

9. UNIX for Dummies Questions & Answers

kernel parameter values

Hi All Need to find kernel parameter values of our UNIX box. /filesys1/tmp>uname -a HP-UX hps1_dc B.11.11 U 9000/800 1681349356 unlimited-user license /filesys1/CDBLprodrun/tmp> Can anyone help me with the cmd to find kernel parameter values? Thanks in advance. (1 Reply)
Discussion started by: mhbd
1 Replies

10. SuSE

max number of slabs per kernel module (kernel 2.6.17, suse)

Hi All, Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff. Cheers, Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies

Featured Tech Videos