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-04-2005, 01:00 AM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
Is my way correct to use EXPORT_SYMBOL_NOVERS(name) ?


hello,
Is EXPORT_SYMBOL_NOVERS(name) when used on variable symbol name allows to use exported symbol irrespective of kernel version on which its compiled and in which its inserted?
That mean does that give flexibility of having symbols inserted to any kernel version without giving unresolved symbol error?
 
Old 12-25-2014, 12:50 PM   #2
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
That's a good question. Now that it has been 10 years, anyone have an answer?

Wayne Sallee
Wayne@WayneSallee.com
 
Old 12-25-2014, 11:53 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Are you referring to some context, or just talking in general?
 
Old 12-26-2014, 07:14 AM   #4
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
I've been downloading kernels from kernel.org, and building them over the years, and am tired of having to use force to load modules.

Wayne Sallee
Wayne@WayneSallee.com
 
Old 12-26-2014, 08:43 AM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
You mean you're using modules from external sources?
 
Old 12-26-2014, 10:49 AM   #6
mina86
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 517

Rep: Reputation: 229Reputation: 229Reputation: 229
There is no EXPORT_SYMBOL_NOVERS in current kernel and the fact that you have to force module loading makes perfect sense – the same symbol may have completely different type between versions of the kernel, so loading module built for a different kernel may cause a crash. Build modules whenever you build a new kernel, stick to the kernel given modules were built for or live with the fact that kernel will warn you that you're not only pointed the gun at your foot but even pulled the trigger – let's hope bullet was not in the chamber.
 
Old 12-26-2014, 01:41 PM   #7
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Quote:
Originally Posted by NevemTeve View Post
You mean you're using modules from external sources?
Yes I guess. New drivers are installed, and new kernels are built.

Wayne Sallee
Wayne@WayneSallee.com
 
Old 12-30-2014, 12:25 AM   #8
kevinmilan2014
LQ Newbie
 
Registered: Nov 2014
Posts: 17

Rep: Reputation: 1
--- linux-2.6.10-rc2-bk11-Module.orig/include/linux/module.h 2004-11-29 07:48:57.000000000 +1100
+++ linux-2.6.10-rc2-bk11-Module/include/linux/module.h 2004-11-29 09:39:31.970206608 +1100
@@ -206,10 +206,6 @@

#endif

-/* We don't mangle the actual symbol anymore, so no need for
- * special casing EXPORT_SYMBOL_NOVERS. FIXME: Deprecated */
-#define EXPORT_SYMBOL_NOVERS(sym) EXPORT_SYMBOL(sym)
-
Code:
 struct module_ref
 {
 	local_t count;
@@ -449,7 +445,6 @@
 #else /* !CONFIG_MODULES... */
 #define EXPORT_SYMBOL(sym)
 #define EXPORT_SYMBOL_GPL(sym)
-#define EXPORT_SYMBOL_NOVERS(sym)
/* Given an address, look for it in the exception tables. */
static inline const struct exception_table_entry *
 
  


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
Correct ISO? Tuul Linux - Newbie 1 10-24-2004 03:20 AM
Am I correct? equinox Mandriva 6 03-11-2004 05:49 AM
What are the correct permissions for /etc? KingofBLASH Slackware 1 01-31-2004 08:56 PM
what is the correct syntax shanenin Linux - Software 2 10-19-2003 12:31 PM
Correct Command, anyone? tomplate Linux - General 3 02-26-2002 08:39 PM

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

All times are GMT -5. The time now is 07:52 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
Open Source Consulting | Domain Registration