On Mon, Nov 22, 2010 at 12:08:24PM +0530, Bond wrote: > Hi, in some of the books I am reading I find > a text which mentions MODULE_DEVICE_TABLE () macro makes a user > defined structure available in the module image so that the module > can be loaded on demand if the card is hotplugged. > I am not clear with how is this detection happening inside the kernel. > How does the kernel detects the presence of a particular device?( I am > not referring to the probe function defined in many drivers) The pci core can tell that a device is found and then does the work to add it to the system. No driver needs to worry about this at all. good luck, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html