How to export symbols?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I've written some code that i placed in arch/i386/kernel , and I've
editing the Makefile there, adding 
export-objs += mydriver.o
obj-y += mydriver.o


I thought simply by adding the driver to export-objs and adding
EXPORT_SYMBOL( foo );

that foo would then be available other drivers, both loadable and
static. Yet a 'grep foo /proc/ksyms' shows nothing, and my kernel module
fails to load as it can't find symbol foo. 

What am i missing? Is there an include file I need to put in?

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux