use of EXPORT_SYMBOL()

Adel Qodmani mpcadel at gmail.com
Tue Jan 29 02:58:23 EST 2013


On Tue, Jan 29, 2013 at 9:52 AM, Mulyadi Santosa
<mulyadi.santosa at gmail.com>wrote:

> On Tue, Jan 29, 2013 at 3:13 AM, horseriver <horserivers at gmail.com> wrote:
> > hi:)
> >
> >    In kernel code ,what is the use of EXPORT_SYMBOL()?
> >    Does it export a function to user application ,
> >    so this function can be used in user application ?
>
> So it can be used by kernel modules.
>
> Think of it like "public" keyword in C++.
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130129/b79893a9/attachment.html 


More information about the Kernelnewbies mailing list