09-26-2008
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 description of the parameters the module uses. But not the current value of the parameter.
Thanks,
Regards.
10 More Discussions You Might Find Interesting
1. Linux
Hi Everyone!
How can we make a socket() system call from a linux module executing in kernel space?
If any one knows, kindly tell me. It will be great.
I want to use the socket interface in linux kernel space for sending raw packets over the network.
Hamayun (0 Replies)
Discussion started by: mian_m_hamayun
0 Replies
2. 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
3. Linux
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
4. Linux
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
5. UNIX for Advanced & Expert Users
how to display pid and other parameters of current process in linux platform ?
i know it can be done through a linux commmand ps -F
but i want it done through kernel program
thanks in advance (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
6. Programming
can a linux kernel module call libc functions, such as printf(), strcpy(), etc...? (9 Replies)
Discussion started by: vistastar
9 Replies
7. Programming
cannot generate .ko file on my linux, although it can generate module.symvers.
But when I copy .c file and Makefile to another linux computer, there's no problem.
The strange thing is: make is successfuly executed, and returned 0;
make output:
make -C /lib/modules/2.6.18-92.el5xen/build ... (4 Replies)
Discussion started by: vistastar
4 Replies
8. Emergency UNIX and Linux Support
Hi,
I need to set qlogic qla2xxx parameters in /etc/modprobe.conf
(Oracle Linux Server release 5.7, almost equal to RedHat 5.7)
two questions:
how can I pass this parameters to the module while it is loaded (fibre channel luns are in use), if possible at all
and how can I check the... (3 Replies)
Discussion started by: funksen
3 Replies
9. Red Hat
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
10. Linux
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
LEARN ABOUT REDHAT
modinfo
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)