LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-22-2009, 03:07 AM   #1
vadirajpanch
LQ Newbie
 
Registered: Oct 2009
Posts: 1
Thanked: 0
Kernel Modules using one another even though not using any symbols


[Log in to get rid of this advertisement]
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?
linux vadirajpanch is offline  
Tag This Post ,
Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
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 07:46 PM
cannot find map file. No module symbols loaded - kernel modules not enabled. Selebus947 Linux - Software 3 01-06-2005 12:02 PM
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 03:50 AM
2.6.5 Problems:No module symbols loaded - kernel modules not enabled robbow52 Debian 11 05-11-2004 05:02 AM
kernel 2.6.0 debian "No module symbols loaded - kernel modules not enabled." toovato Linux - General 2 01-07-2004 08:56 PM


All times are GMT -5. The time now is 09:20 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration