LinuxQuestions.org
Help answer threads with 0 replies.
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 06-05-2006, 05:38 PM   #1
dogalmity
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
export symbol from module to kernel


Hey folks,

Got a question about EXPORT_SYMBOL. I can modify the kernel code to export a variable that I can then monkey with in a loadable module. But is it possible to export a symbol from a module TO the kernel? I'm trying to do just that, but I'm getting an "undefined reference to" error for each one when I try to make the kernel. These variables I declare in the module and then EXPORT_SYMBOL them. Then in the kernel code I just stick an extern in front of their declaration, just like I do when going from kernel to module. Is this just something you can't do, or am I doing it wrong?

Using 2.6.16

Many many thanks,
Nathan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel module symbol error b123coder Programming 0 12-03-2004 04:56 AM
modprobe -> Unknown symbol in module sara_W Linux - Wireless Networking 1 09-13-2004 01:32 AM
Unresolved Symbol in module snd-usb-usx2y.o Slacker_Rex Slackware 2 05-15-2004 09:56 AM
unknown symbol sys_mknod in module? dklaming Linux - General 0 05-07-2004 12:55 PM
unresolved symbol error/ acx100_pci.o module sahil1 Linux - Hardware 0 03-12-2004 01:32 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration