Re: use of EXPORT_SYMBOL()

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

 



Hi Adrian,

     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.

regards,

--sabyasachi


On Sun, 4 Dec 2005, Adrian Bunk wrote:

> On Sun, Dec 04, 2005 at 06:06:48AM -0500, Sabyasachi Pradhan wrote:
>
> > Hi,
>
> Hi,
>
> >     Just wanted to know the use of EXPORT_SYMBOL() which appears in quite
> > some files in the linux kernel. If I am writing a loadable module and I
> > need to export some symbol form some file in the kernel, what all steps
> > should I need to  take ?
>
> for your development, simply place the EXPORT_SYMBOL()'s directly below
> the functions you want to export (as long as they are not static).
>
> If you need the EXPORT_SYMBOL()'s in the mainline kernel, send the patch
> to add them when you submit your module for inclusion in the kernel.
>
> > regards,
> >
> > --sabyasachi
>
> cu
> Adrian
>
> --
>
>        "Is there not promise of rain?" Ling Tan asked suddenly out
>         of the darkness. There had been need of rain for many days.
>        "Only a promise," Lao Er said.
>                                        Pearl S. Buck - Dragon Seed
>
>

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


[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