Re: use of EXPORT_SYMBOL()

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

 



On Tue, Jan 29, 2013 at 2:58 PM, Adel Qodmani <mpcadel@xxxxxxxxx> wrote:
> And you're allowed to use it in Kernel modules too? I mean I can expose a
> function in a kernel module that I am building by using EXPORT_SYMBOL?

technically, yes, you're allowed to export symbol(s) in your kernel
module. Of course, during compiling, module that uses that exported
symbol will be said as using unknown symbol (but since likely you will
use "extern", it will still go on).

During module linking in kernel space, that "unknown symbol name" will
be resolved. Just like what we see when a program link to function(s)
or variable(s) in dynamic libraries.


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
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