LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-22-2009, 02:07 AM   #1
vadirajpanch
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Kernel Modules using one another even though not using any symbols


Hi,

I am trying to load two modules in the kernel(v 2.6.9).
Module1 and Module2. Both have simple init and exit functions with a simple printk in both the functions.

Say I have inserted Module1 first.

#insmod Module1.ko
#insmod Module2.ko

Even though Module2 does not make a reference to (or call) any symbols in Module1, when I do lsmod it says Module2 using Module1. Also I can't unload Module1 while Module2 still inserted.

i.e. when I do
#rmmod Module1

I get "Module1 is in use by Module2"

Does insmod (or load_module function in kernel/module.c) optimize the text section of the modules? If yes, based on what criteria, kernel does this optimization?

Is there anyway I can avoid this optimization?
 
  


Reply

Tags
kernel, modules



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unresolved Symbols Kernel Modules Athlon Optimized terosaur Slackware 2 02-05-2007 06:46 PM
cannot find map file. No module symbols loaded - kernel modules not enabled. jjorloff1 Linux - Software 3 01-06-2005 11:02 AM
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 02:50 AM
2.6.5 Problems:No module symbols loaded - kernel modules not enabled robbow52 Debian 11 05-11-2004 04:02 AM
kernel 2.6.0 debian "No module symbols loaded - kernel modules not enabled." toovato Linux - General 2 01-07-2004 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration