Re: EXPORT_NO_SYMBOLS

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

 





Fawad Lateef <fawadlateef@xxxxxxxxx> wrote:
On 3/9/06, Rajaram Suryanarayanan wrote:
>
> Is EXPORT_NO_SYMBOLS available in kernel 2.6 ?
> I am using it in my module, but still the symbols are being exported and
> seen in /proc/kallsyms.
>

As others mentioned from 2.6.x kernel series EXPORT_NO_SYMBOL is
removed, I want to add that if you don't want your symbols to be
exported then define them static.

> EXPORT_NO_SYMBOLS;
> int i_hello;
>
> int init_module(void)
> {
>
> printk(KERN_INFO "Hello World \n");
> //printk(KERN_INFO "%d\n",jiffies/(HZ *3600));
> return 0;
>
> }
>
> void cleanup_module(void)
> {
> printk(KERN_INFO "Goodbye World\n");
> }
>


--
Fawad Lateef

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

I tried using "static int i_hello;".
Still the symbol gets exported. Can anybody please clarify ?

Thanks,
Rajaram.


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

[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