LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-16-2010, 04:13 PM   #1
L2S
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
EXPORT_SYMBOL in suse


Hi, I'm writing a kernel driver that needs to export some functions to another, I only had a Fedora machine available, so I try it out on Fedora when I load the second module, the one using the exported function won't load (bummer), sure enough I check and I had a typo in my EXPORT_SYMBOL statement, I fixed it and cool everything loads!

O.K. so now I take the working code and build it on the suse 11.3 (2.6.34-12 kernel) the Linux flavor we need to support and bummer I get the second module won't load because it can't find the symbol from the first module (which loaded fine). I checked to make sure I had the corrected file and yep the same source that built and loaded under Fedora, built but didn't load under suse, any ideas? This is my first real foray into Linux kernel, I've developed in the windows kernel, and many many moons ago in other flavors of unix. I was really pleased how simple and intuitive things have been, but now I'm at a loss. I don't even know how to list the current kernel symbols (I googled it and saw something about nm, but when I dumbly typed in nm I got a complaint about a.out. As a first step I would love to be able to see a list of kernel symbols.
 
Old 09-16-2010, 04:53 PM   #2
L2S
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
O.K., so I research some more and find the file kallsyms I do a grep and find my symbols:

linux-fvqo:/proc # cat kallsyms | grep SL
ffffffffa02823b0 r __ksymtab_SLDmaSetProperties [PlxDma]
ffffffffa02824c3 r __kstrtab_SLDmaSetProperties [PlxDma]
ffffffffa0282430 r __kcrctab_SLDmaSetProperties [PlxDma]
ffffffffa02823c0 r __ksymtab_SLDmaGetProperties [PlxDma]
ffffffffa02824d6 r __kstrtab_SLDmaGetProperties [PlxDma]
ffffffffa0282438 r __kcrctab_SLDmaGetProperties [PlxDma]
ffffffffa02823e0 r __ksymtab_SLDmaChannelOpen [PlxDma]
ffffffffa02824fd r __kstrtab_SLDmaChannelOpen [PlxDma]
ffffffffa0282448 r __kcrctab_SLDmaChannelOpen [PlxDma]
ffffffffa02823f0 r __ksymtab_SL_GetDMAEngine [PlxDma]
ffffffffa028250e r __kstrtab_SL_GetDMAEngine [PlxDma]
ffffffffa0282450 r __kcrctab_SL_GetDMAEngine [PlxDma]
ffffffffa027f0a0 t SL_DMA_RegisterForDMACompletionCallback [PlxDma]
ffffffffa027f080 T SLDmaChannelOpen [PlxDma]
ffffffffa027f390 T SL_GetDMAEngine [PlxDma]
ffffffffa027dd30 T SLDmaGetProperties [PlxDma]
ffffffffa027f360 T SLDmaSetProperties [PlxDma]
ffffffffa027f370 t SLDmaStartRing [PlxDma]

So why can't the second module load? I don't know know how to interpret all the fields, I am guessing it has something to do with privledges.
 
  


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
EXPORT_SYMBOL +parse error kewl Linux - Kernel 1 07-02-2009 07:56 AM
EXPORT_SYMBOL--error ashok449 Linux - Kernel 3 01-22-2008 11:23 PM
export_symbol shrishailnk Linux - Networking 0 04-26-2006 09:51 AM
EXPORT_SYMBOL (linux) nooch Programming 2 03-03-2005 08:35 AM
what does EXPORT_SYMBOL do? h/w Programming 2 05-17-2004 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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