Re: About EXPORT_SYMBOL

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

 



Hi kashish,

On Thu, Feb 10, 2011 at 5:18 AM, kashish bhatia <koolest77@xxxxxxxxx> wrote:
> Hello All,
> I want to export a function named ext2_free_data() which is present in
> inode.c .
> This function is statically defined in this file. I omit the "static"
> keyword and exported it
> using EXPORT_SYMBOL(ext2_free_data).
> ext2_free_data() function declaration is not present in any header file , so
> I included its
> declaration in my own header file which I kept in fs/ext2 directory.

So generally speaking, functions that are declared static were done
that way for a reason.

> Now when I insert my module using insmod command ,it shows a error : Unknown
> symbol in module.

Did you rebuild the kernel as well? The kernel where the exported
symbol comes from must be rebuilt and you must load using that kernel.

Dave Hylands

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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