LinuxQuestions.org
Review your favorite Linux distribution.
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 03-02-2005, 02:40 PM   #1
nooch
LQ Newbie
 
Registered: Jan 2005
Posts: 10

Rep: Reputation: 0
EXPORT_SYMBOL (linux)


Hi all,

I'm trying to export a symbol in my linux kernel.

Right now, our current code has:

#ifndef MY_DEBUG
/* don't export any symbols */
EXPORT_NO_SYMBOLS;
#endif /* MY_DEBUG */


Now, I have a function (symbol) that I want to export called 'my_symbol'.

Is it possible to export just 'my_symbol' but still keep everything else not exported??

Hope this makes sense, a little new to this...

thanks in advance for your time.
 
Old 03-02-2005, 04:14 PM   #2
nooch
LQ Newbie
 
Registered: Jan 2005
Posts: 10

Original Poster
Rep: Reputation: 0
not sure if my question is clear.

I have it working now, I added my EXPORT_SYMBOL(my_symbol)...and define SYMTAB...etc..

but I'm confused as to how this all works.

If I do a 'nm' on my kernel library before my changes, I already see my_symbol.
Shouldn't I NOT see my symbol when we have EXPORT_NO_SYMBOLS ?

or am I missing the concept here?

thanks!
 
Old 03-03-2005, 08:35 AM   #3
nooch
LQ Newbie
 
Registered: Jan 2005
Posts: 10

Original Poster
Rep: Reputation: 0
bump....hoping some linux kernel programmers out there.....
 
  


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM
what does EXPORT_SYMBOL do? h/w Programming 2 05-17-2004 09:35 PM

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

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