MODULE_ALIAS - Explain with this example?

Rajat Jain <[email protected]> Wed, 11 Dec 2013 05:42:47 +0000
Newsgroups org.kernel.vger.linux-newbie,org.kernelnewbies.kernelnewbies
Message-ID <648775f823934f898fc705e660f05820@DM2PR05MB671.namprd05.prod.outlook.com>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs