Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Linux: passing parameters to kernel modules Post 302601610 by funksen on Friday 24th of February 2012 08:28:25 AM
Old 02-24-2012
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 current used parameters by this module (modinfo shows me the possible values, but not the actual)

thanks in advance
cheers funksen

---------- Post updated at 14:28 ---------- Previous update was at 10:43 ----------

ok the second issue is solved I guess:

Code:
cd /sys/module/qla2xxx/parameters
# ls -l
total 0
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xallocfwdump
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xasynctmfenable
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xdbwr
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xdontresethba
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xenabledif
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xenablehba_err_chk
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xetsenable
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xextended_error_logging
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xfdmienable
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xfwloadbin
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xgffidenable
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xiidmaenable
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xloginretrycount
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xlogintimeout
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmaxlun
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xmaxqdepth
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmaxqueues
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmdcapmask
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmdenable
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmultique_tag
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xplogiabsentdevice
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xshiftctondsd
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xtargetreset
-r--r--r-- 1 root root 4096 Feb 24 11:10 qlport_down_retry

I set the parameter qlport_down_retry in /etc/modprobe.conf to 14

Code:
# cat qlport_down_retry
64

the whole system has been rebootet, but the new value is not being used by the module

in /etc/modprobe.conf:
Code:
options qla2xxx ql2xmaxqdepth=16 ql2xloginretrycount=30 qlport_down_retry=14

 

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
volmgt_root(3VOLMGT)					Volume Management Library Functions				      volmgt_root(3VOLMGT)

NAME
volmgt_root - return the Volume Management root directory SYNOPSIS
cc [ flag ... ] file ... -lvolmgt [ library ... ] #include <volmgt.h> const char *volmgt_root(void); DESCRIPTION
The volmgt_root() function returns the current Volume Management root directory, which by default is /vol but can be configured to be in a different location. RETURN VALUES
The volmgt_root() function returns pointer to a static string containing the root directory for Volume Management. ERRORS
This function may fail if an open() of /dev/volctl fails. If this occurs a pointer to the default Volume Management root directory is returned. EXAMPLES
Example 1: Finding the Volume Management root directory. To find out where the Volume Management root directory is: if ((path = volmgt_root()) != NULL) { (void) printf("Volume Management root dir=%s ", path); } else { (void) printf("can't find Volume Management root dir "); } FILES
/vol default location for the Volume Management root directory ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
cc(1B), vold(1M), open(2), volmgt_check(3VOLMGT), volmgt_inuse(3VOLMGT), volmgt_running(3VOLMGT), attributes(5), volfs(7FS) NOTES
This function returns the default root directory location even when Volume Management is not running. SunOS 5.10 1 Feb 2001 volmgt_root(3VOLMGT)
All times are GMT -4. The time now is 09:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy