LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2005, 03:17 PM   #1
jinxcat
LQ Newbie
 
Registered: Sep 2005
Posts: 9

Rep: Reputation: 0
How to use SYMBOLs from another module


From what I understand, symbols point to either variables or functions, and it's really easy to export them (just with the EXPORT_SYMBOL(that_symbol); function, correct?)

If "module_a" has 2 symbols:

ma_fun to function "int ma_fun(int)"
ma_var to variable "int ma_var"

how could I use them to call them from inside module_b?


[edit] I am using FC4 with 2.6.12 kernel [/edit]

Last edited by jinxcat; 09-14-2005 at 04:41 PM.
 
Old 09-16-2005, 12:10 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I think that's about right. Function names can be used as symbols AFAIK, so if you export them, you should be able to reference them from other modules. I'm not an expert on kernel programming though so I'd suggest checking the online version of Linux Device Drivers which should have something to say on the subject.
 
  


Reply



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
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
Unresolved symbols in module loading Cusp Linux - Software 3 12-11-2003 05:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:17 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