MODULE_ALIAS - Explain with this example?

Sudip Mukherjee sudipm.mukherjee at gmail.com
Wed Dec 11 02:53:04 EST 2013


On Wed, Dec 11, 2013 at 12:44 PM, Rajat Jain <rajatjain at juniper.net> wrote:

>  Yes, I read that. It is  a 10 yr old article, and was wondering how much
> valid it is today.
>
>
>
> However, I still do not understand in the context of this example of a
> platform driver.
>
>
>
> *From:* Sudip Mukherjee [mailto:sudipm.mukherjee at gmail.com]
> *Sent:* Tuesday, December 10, 2013 11:04 PM
> *To:* Rajat Jain
> *Subject:* Re: MODULE_ALIAS - Explain with this example?
>
>
>
>
>
> On Wed, Dec 11, 2013 at 11:12 AM, Rajat Jain <rajatjain at juniper.net>
> wrote:
>
>
>
> Can some one please help me understand what does the use of MODULE_ALIAS()
> achieve?
>
>
>
> http://lwn.net/Articles/47412/
>

I think it is still valid.
 If you see include/linux/module.h<http://lxr.free-electrons.com/source/include/linux/module.h#L99>
,
you will see it is just another name of MODULE_INFO . But again in
include/linux/device.h<http://lxr.free-electrons.com/source/include/linux/module.h#L99>
,
 see the definition of MODULE_ALIAS_CHARDEV .
Also see
https://groups.google.com/forum/#!msg/fa.linux.kernel/Uwlu-lqrrg8/WlI2l-GeJUkJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131211/9c996b0c/attachment.html 


More information about the Kernelnewbies mailing list