Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Linux kernel module parameters Post 302240660 by macL on Friday 26th of September 2008 09:26:27 AM
Old 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

Making Socket System Call From Linux Kernel Module?

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

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

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

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

5. UNIX for Advanced & Expert Users

how to display pid and other parameters of current process through kernel module ?

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?

can a linux kernel module call libc functions, such as printf(), strcpy(), etc...? (9 Replies)
Discussion started by: vistastar
9 Replies

7. Programming

Make cannot generate .ko linux kernel module

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

Linux: passing parameters to kernel modules

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

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

10. 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
modinfo(1M)                                               System Administration Commands                                               modinfo(1M)

NAME
modinfo - display information about loaded kernel modules SYNOPSIS
/usr/sbin/modinfo [-c] [-w] [-i module-id] DESCRIPTION
The modinfo utility displays information about the loaded modules. The format of the information is as follows: Id Loadaddr Size Info Rev Module Name where Id is the module ID, Loadaddr is the starting text address in hexadecimal, Size is the size of text, data, and bss in hexadecimal bytes, Info is module specific information, Rev is the revision of the loadable modules system, and Module Name is the filename and description of the module. The module specific information is the block and character major numbers for drivers, the system call number for system calls, and unspeci- fied for other module types. OPTIONS
The following options are supported: -c Display the number of instances of the module loaded and the module's current state. -i module-id Display information about this module only. -w Do not truncate module information at 80 characters. EXAMPLES
Example 1: Displaying the Status of a Module The following example displays the status of module 2: example% modinfo -i 2 Id Loadaddr Size Info Rev Module Name 2 ff08e000 1734 - 1 swapgeneric (root and swap configuration) Example 2: Displaying the Status of Kernel Modules The following example displays the status of some kernel modules: example% modinfo Id Loadaddr Size Info Rev Module Name 2 ff08e000 1734 - 1 swapgeneric 4 ff07a000 3bc0 - 1 specfs (filesystem for specfs) 6 ff07dbc0 2918 - 1 TS (time sharing sched class) 7 ff0804d8 49c - 1 TS_DPTBL (Time sharing dispatch table) 8 ff04a000 24a30 2 1 ufs (filesystem for ufs) 9 ff080978 c640 226 1 rpcmod (RPC syscall) 9 ff080978 c640 - 1 rpcmod (rpc interface str mod) 10 ff08cfb8 2031c - 1 ip (IP Streams module) 10 ff08cfb8 2031c 2 1 ip (IP Streams device) Example 3: Using the -c Option Using the modinfo command with the -c option displays the number of instances of the module loaded and the module's current state. example% modinfo -c Id Loadcnt Module Name State 1 0 krtld UNLOADED/UNINSTALLED 2 0 genunix UNLOADED/UNINSTALLED 3 0 platmod UNLOADED/UNINSTALLED 4 0 SUNW,UltraSPARC-IIi UNLOADED/UNINSTALLED 5 0 cl_bootstrap UNLOADED/UNINSTALLED 6 1 specfs LOADED/INSTALLED 7 1 swapgeneric UNLOADED/UNINSTALLED 8 1 TS LOADED/INSTALLED 9 1 TS_DPTBL LOADED/INSTALLED 10 1 ufs LOADED/INSTALLED 11 1 fssnap_if LOADED/INSTALLED ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
modload(1M), modunload(1M), attributes(5) SunOS 5.10 1 Oct 2002 modinfo(1M)
All times are GMT -4. The time now is 06:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy