Re: use of EXPORT_SYMBOL()

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

 



Hi,

    To compile the kernel properly I had to make a change to the Makefile
in linux/fs/ to add a new entry super.o to extern-obj's. I was checking
the exported symbols in my kernel use /proc/ksyms and just wanted to know
what the string appearing before the symbol signify, is it the address in
memory ? Can I use the exported synbol directly in my program or do I have
to make any more changes ? Thanks.

regards,

--Sabyasachi Pradhan

On Mon, 5 Dec 2005, Fawad Lateef wrote:

> 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/
>
>
>

--
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