Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Linux: passing parameters to kernel modules Post 302640665 by otheus on Tuesday 15th of May 2012 07:56:30 AM
Old 05-15-2012
Indeed, I see the same problem on our system.

---------- Post updated at 01:56 PM ---------- Previous update was at 01:51 PM ----------

Ah, it's a read-only value in the driver source. This might be a bug.

Code:
int qlport_down_retry;
module_param(qlport_down_retry, int, S_IRUGO|S_IRUSR);
MODULE_PARM_DESC(qlport_down_retry,
                "Maximum number of command retries to a port that returns"
                "a PORT-DOWN status.");

If you could write to it, the S_IRUSR would be S_IWUSR.

See the final paragraph in the description of the macro here: 2.8. Module Parameters
This User Gave Thanks to otheus For This Post:
 

10 More Discussions You Might Find Interesting

1. HP-UX

Information about kernel modules

Hi all, what do kernel modules libaudit, klog and strlog do? Specifically I want to determine if it was possible for us to determine if kernel level auditing is enabled at all? regards (0 Replies)
Discussion started by: slash_blog
0 Replies

2. UNIX for Dummies Questions & Answers

Linux kernel module parameters

Hi, Does anyone know if it is possible to know the current value of a kernel module parameters after the module is loaded. Are the values of the parameters advertised at some /proc or /sys location ? The only thing I know is modinfo, that actually looks a the module .ko and gives a... (3 Replies)
Discussion started by: macL
3 Replies

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

4. UNIX for Advanced & Expert Users

Kernel Modules Not geting built

I installed in VM the Mandriva Linux with 2.6.27 kernel. But presently when I fire make the modules .ko does not get built. I get the following output on firing command in the kernel module folder. $ make Building first_driver.c ... make: Entering directory... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

5. Programming

Debugging Linux Kernel Modules

I am aware of debugging linux applications using gdb and ddd. Now I have written a simple kernel module having init_module, exit _module and some functions for tasklets and workqueues. I want to debug these kernel modules like I used to debug applications setting breakpoints etc. How can I debug... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

6. UNIX for Dummies Questions & Answers

Linux kernel modules makefiles doubts

This query is regarding the makefiles of linux kernel modules. I saw at some sites on net it is suggesting to include the following path: KERNEL_SOURCE := /usr/src/linux... while at some places it is askibg to include /lib/modules path: KERNEL_SOURCE := /lib/modules/2.6.27-7-generic/build... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

7. Red Hat

Kernel parameters problem in Linux

please tell me the list of kernel parameters in RHEL 5.7 Because we've a requirement in one project. Also tell me the importance of eah kernel parameter if possible. ==Thanks in Advance==:):D (1 Reply)
Discussion started by: vamshigvk475
1 Replies

8. Hardware

Linux Kernel Modules

Hey everyone. I have a question, doing an lsmod gives me a list of all the loaded modules for my system. But how did they know to load? my /etc/modules files is empty, so how did these modules know to load themselves on boot time? If I were to take this hard drive to another computer with a... (6 Replies)
Discussion started by: Lost in Cyberia
6 Replies

9. Linux

Disable loading kernel modules

Hi, I am running CentOS 6.5 and I want to remove auto loading 8021q and garp modules, but there are no configure files in /etc/modprobe.d define bot modules. I even added both module names to /etc/modprobe.d/blacklist.conf, both of them are still loaded after the reboot. How can I disable... (2 Replies)
Discussion started by: hce
2 Replies

10. UNIX for Beginners Questions & Answers

Missing Modules After Compiling Kernel

I'm a little embarrassed after all these years I've never really successfully compiled my own kernel. I used this guide to make the following files: linux-headers-5.1.9_5.1.9-1_amd64.deb linux-image-5.1.9_5.1.9-1_amd64.deb linux-libc-dev_5.1.9-1_amd64.deb When I first booted into this... (4 Replies)
Discussion started by: Azrael
4 Replies
MODINFO(8)						       Linux Module Support							MODINFO(8)

NAME
modinfo - display information about a kernel module SYNOPSIS
modinfo [ options ] <module_file> DESCRIPTION
The modinfo utility examines the object file module_file associated with a kernel module and displays any information that it can glean. OPTIONS -a, --author Display the module's author. -d, --description Display the module's description. -fformat_string, --format format_string Let the user specify an arbitrary format string which can extract values from the ELF section in module_file which contains the mod- ule information. Replacements consist of a percent sign followed by a tag name in curly braces. A tagname of %{filename} is always supported, even if the module has no modinfo section. %{kernel_version} shows the version of the kernel the module was compiled for. %{using_checksums} expands to 1 is the module has versioned symbols and to 0 or <none> otherwise. A tagname of %{parm} is special: the format string line is repeated for each known module parameter (which may be zero times) and %{parm} is then replaced by descriptions of module parameters (one parameter on each repeated line). Alternatively, %a, %d, %l, %n and %p can be used instead of %{author}, %{description}, %{filename}, %{license} and %{parm}, respec- tively. -h, --help Display a summary of options and immediately exit. -l, --license Display the module's license. -n, --filename Display the module's filename. -p, --parameters Display the typed parameters that a module may support. -V, --version Display the version of modinfo. If no options are supplied, the default is filename, description, author, license and parameters. SEE ALSO
insmod(8), modprobe(8), depmod(8), rmmod(8), lsmod(8), ksyms(8), modules(2) Linux March 19, 2002 MODINFO(8)
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy