kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: jiangtao.jit@gmail.com (Tao Jiang (姜涛))
To: kernelnewbies@lists.kernelnewbies.org
Subject: Need help on understanding hardware detection
Date: Tue, 20 Aug 2013 12:53:23 +0800	[thread overview]
Message-ID: <5212F63C.7070708@gmail.com> (raw)
In-Reply-To: <CAKQ1VnRonJdRh-eFt5gQ49hgoA2O6Acub-cm4u7ec47PDPv_+Q@mail.gmail.com>

Saqlain:
	Thanks for your guide.
	I'll do more search.

------------------				 
Tao Jiang (??)
2013-08-20

-------------------------------------------------------------
????Saqlain Abbas <saqlain.abbas.7@gmail.com>
?????2013-08-20 11:28
????Tao Jiang (??)
???kernelnewbies
???Re: Re: Need help on understanding hardware detection

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 (??) <jiangtao.jit@gmail.com>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 <saqlain.abbas.7@gmail.com>
> ?????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.com
> >wrote:
>
> > 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.

  reply	other threads:[~2013-08-20  4:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-19 11:47 Need help on understanding hardware detection Tao Jiang (姜涛)
2013-08-19 11:53 ` Saqlain Abbas
2013-08-20  1:46   ` Tao Jiang (姜涛)
2013-08-20  3:28     ` Saqlain Abbas
2013-08-20  4:53       ` Tao Jiang (姜涛) [this message]
2013-08-19 22:41 ` /dev/sda to ata_host Com Developer
2013-08-20  6:09   ` Valdis.Kletnieks at vt.edu
2013-08-20  7:25     ` Com Developer
2013-08-20 12:28       ` Valdis.Kletnieks at vt.edu
2013-08-20 12:39     ` Greg Freemyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5212F63C.7070708@gmail.com \
    --to=jiangtao.jit@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).