<br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 8:31 AM, Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Jan 29, 2013 at 2:58 PM, Adel Qodmani <<a href="mailto:mpcadel@gmail.com">mpcadel@gmail.com</a>> wrote:<br>
> And you're allowed to use it in Kernel modules too? I mean I can expose a<br>
> function in a kernel module that I am building by using EXPORT_SYMBOL?<br>
<br>
</div>technically, yes, you're allowed to export symbol(s) in your kernel<br>
module. Of course, during compiling, module that uses that exported<br>
symbol will be said as using unknown symbol (but since likely you will<br>
use "extern", it will still go on).<br>
<br>
During module linking in kernel space, that "unknown symbol name" will<br>
be resolved. Just like what we see when a program link to function(s)<br>
or variable(s) in dynamic libraries.<br>
<div class="HOEnZb"><div class="h5"><br>
<br></div></div></blockquote><div>I think this is explained very well in LDD chapter 1 or 2) and LKD. Kernel modules are in kernel space, so if you export a symbol it is available to the kernel. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you <br>Warm Regards<br>Anuz<br>