Re: How _not_ to export symbols ...

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

 



On Mon, Sep 10, 2001 at 11:49:26PM +0530, Sandip Bhattacharya wrote:

> 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?

Rather unsupprisingly, EXPORT_NO_SYMBOLS() does what it says ;)

-- 

Mark Zealey (aka JALH on irc.openprojects.net: #zealos and many more)
mark@itsolve.co.uk

UL++++>$ G!>(GCM/GCS/GS/GM) dpu? s:-@ a16! C++++>$ P++++>+++++$ L+++>+++++$
!E---? W+++>$ N- !o? !w--- O? !M? !V? !PS !PE--@ PGP+? r++ !t---?@ !X---?
!R- b+ !tv b+ DI+ D+? G+++ e>+++++ !h++* r!-- y--

(www.geekcode.com)
-
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