Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-05-2006, 04:38 PM   #1
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,


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

All times are GMT -5. The time now is 05:36 AM.

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