[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use of EXPORT_SYMBOL()
On 12/5/05, Sabyasachi Pradhan <spradhan@xxxxxxxxxxxxx> wrote:
> Thanks for the reply. I was trying the following. In the file
> linux/fs/super.c in 2.4.31 there is a line which is
> "LIST_HEAD(super_blocks);" ,I need to use superblocks in my module, so I
> just add "EXPORT_SYMBOL(super_blocks);" below the above line and recompile
> the kernel. Here super_blocks is a strcuture of type LIST_HEAD. Is this
> following procedure correct ? Thanks.
>
Yes, this is correct. By the way AFAIK any symbol without static is
by-default exported by kernel (CMIIW)
--
Fawad Lateef
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/