Need help on understanding hardware detection
From: Saqlain Abbas <hidden>
Date: 2013-08-20 03:28:03
I believe "CPU through an interrupt" is correct, dude there is lot material on Google on this topic, just try to search using terms "how kernel detect a hardware" or "kernel plug and play" etc, try to use different queries and you will find lot of stuff. Cheers, On Tue, Aug 20, 2013 at 6:46 AM, Tao Jiang (??) [off-list ref]wrote:
Saqlain: Thanks for your reply. The article really opened my eyes. But in that article wrote as 1. " Linux kernel constantly scans all your computer bus?es for any changes and new hardware. Once any change on any bus is detected magic begins " And in the comments at the bottom, 2. "a bus controller notifies the CPU through an interrupt which allows the kernel to query the controller back for information" So my question is which one is right? And can you show me more details on Linux kernel's implementation about "constantly scans" or "notifies the CPU through an interrupt"? ------------------ Tao Jiang (??) 2013-08-20 ------------------------------------------------------------- ????Saqlain Abbas [off-list ref] ?????2013-08-19 19:53 ????Tao Jiang (??) ???kernelnewbies ???Re: Need help on understanding hardware detection have a look at http://blogas.sysadmin.lt/?p=141 will give you a nice idea... Cheers, Saqlain. On Mon, Aug 19, 2013 at 4:47 PM, Tao Jiang (??) <jiangtao.jit@gmail.comquoted
wrote:quoted
Hi All: I did some search on "how does linux kernel detect hardware?" and got what udev is. I konw Linux kernel will send a netlink message to udevd. But I still do not understand how the kernel can decide to send a netlink message. What happend before the netlink message? Take an usb stick for example, what will happen and what the kernel do from the very beginning of it been plugged in? Thank you for advance. Any references will be appreciated. -------------- Tao Jiang (??) 2013-08-19 _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies-- Kind Regards, Saqlain Abbas.
-- Kind Regards, Saqlain Abbas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130820/fc32d3da/attachment.html