When "probe" is called?
Joy Sun
joy2sun127 at gmail.com
Mon Feb 7 02:47:01 EST 2011
Thanks, Mulyadi,
Can you tell me which kernel part is monitoring those jobs which will
trigger the interrupt? I mean, when we're making a device driver for the
linux kernel, the very beginning job is registering "probe" function.
However, I still don't know how the "probe" is actually called.
For example as yours, when USB key is inserted, which/what function will
trigger the interrupt? In case of USB memory stick, the interrupt might be
triggered by the USB Host Controller (e.g., EHCI). So, assuming that the USB
Host Controller Driver will do it, but isn't it that the USB Host
Controller, itself is registerred by "probe"? If then, how kernel knows the
controller is actually active on the bus?
J.
On Sun, Feb 6, 2011 at 11:31 PM, Mulyadi Santosa
<mulyadi.santosa at gmail.com>wrote:
> On Mon, Feb 7, 2011 at 13:53, Joy Sun <joy2sun127 at gmail.com> wrote:
> > Hi,
> > I am seeing probe function pointer and know the procedure to register of
> it
> > for a specific device driver. However, I wonder when it is actually
> called?
> > For example, for platform drivers, there is a structure like this:
>
> Hi...
>
> AFAIK, it's mostly related to interrupt and/or bus handling. Whenever
> there is new device gets active, "message" is sent along to the bus,
> for example when you insert a USB flash disc.
>
> NB: Might be loosely related to HAL or udev
>
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110206/e26bcf51/attachment.html
More information about the Kernelnewbies
mailing list