How _not_ to export symbols ...

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

 



Hi!

I was looking at a better solution to _not_ export all symbols from my
module  to the ksyms than filling your source with "static". In
earlier versions, all one used was register_symtab(NULL). But this has
been removed in 2.2+ kernels. A very helpful person on #kernelnewbies
pointed out that register_symtab() is deprecated, and we are supposed
to use the macro EXPORT_SYMBOL() for exporting symbols. Well now, what
do we do to ensure that we _don't_ ? Somebody suggested insmod -x. But
is there a way we can do it in the source itself?

- Sandip

-- 
-------------------------------------
Sandip Bhattacharya 
sandipb @ bigfoot.com
http://www.sandipb.net
-------------------------------------

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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