MODULE_ALIAS - Explain with this example?

Rajat Jain rajatjain at juniper.net
Wed Dec 11 00:42:47 EST 2013


Hi,

Can some one please help me understand what does the use of MODULE_ALIAS() achieve?

In the simple char driver "drivers/char/hw_random/omap-rng.c", I see the following in addition to the regular stuff.

/* work with hotplug and coldplug */
MODULE_ALIAS("platform:omap_rng");

Can some one tell me what is the above indicating?

Thanks,

Rajat




More information about the Kernelnewbies mailing list