Fawad Lateef <fawadlateef@xxxxxxxxx> wrote:
On 3/9/06, Rajaram SuryanarayananI tried using "static int i_hello;".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/
Still the symbol gets exported. Can anybody please clarify ?
Thanks,
Rajaram.
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.