[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help Needed in accessing symbols
----- Original Message -----
From: "Abhinav Bharti" <abhinavbharti@yahoo.com>
To: <kernelnewbies@nl.linux.org>
Sent: Wednesday, October 08, 2003 7:55 AM
Subject: Help Needed in accessing symbols
> Hi,
>
> I need some help in accessing symbols exported from
> other module.
>
> One of my modules defines a variable ( say X) and by
> default it is
> exported > this is also visible in ksyms output.
>
> But when I try to access it from another module and
> try to print its
> address It always returns zero and hence any access to
> it crashes the
> system stating null pointer reference
>
> I am not able to figure what is going wrong.
>
> Is it because I am not explicitly exporting the
> symbols
>
> Help needed.
>
> Regds,
>
> Abhinav
>
>
> =====
>
> from the desk of:Abhinav Bharti
>
>
>
To use a symbol from another module , you need to export it. ksyms
will list all the symbol that are currently in the kernel. Not all
will be exported.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/