LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Help, loadable kernel module . (http://www.linuxquestions.org/questions/linux-general-1/help-loadable-kernel-module-491962/)

ERBRMN 10-12-2006 10:28 PM

Help, loadable kernel module .
 
Hi all

Could you help me to understand to load module to kernel.

I added some loadable module (multipath and multipath_wrandom) to kernel.
These two modules , I want to use it for multipath routing.

I compiled kernel with multipath and multipath wrandom module.
After compile, I added these two modules using the modprobe.

# lsmod

module _ _ _ _ _ _ _ _ _ Size _ Used by
---------------------------------
multipath _ _ _ _ _ _ _ _ 5856 _ _ 0
multipath_wrandom _ _ 9344 _ _ 0
i82365 _ _ _ _ _ _ _ _ _6344 _ _ 1

.......

I think new loaded modules are not used by kernel.... Right ?
Because , there is "0" on Used by column.

How can I confirm/see that kernel using the new loaded modules ?
.

unSpawn 10-13-2006 05:54 AM

They're loaded so they're available for anything that wants to use it.
How can I confirm/see that kernel using the new loaded modules?
Play with multipath-tools?

ERBRMN 10-13-2006 06:18 AM

Quote:

Originally Posted by unSpawn
They're loaded so they're available for anything that wants to use it.
How can I confirm/see that kernel using the new loaded modules?
Play with multipath-tools?

[B]Thk u , unSpawn

I have measurement results: After load multipath module to kernel and Before load multipath to kernel. They showed me same results. (not quite same, but ...)

So I want to see that the kernel is using new loaded modules? (or not?)
I checked all log messages.
[B]

unSpawn 10-13-2006 07:34 AM

I want to see that the kernel is using new loaded modules? (or not?)
Using the modules means loading devices that depends on them.
Checking the kernel for using the modules AFAIK means (apart from looking at diagnostic output from tools) resorting to stuff like http://oprofile.sourceforge.net/doc/...kernel-modules or equivalent.


All times are GMT -5. The time now is 03:44 AM.