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
<[email protected]>wrote:

> On Mon, Feb 7, 2011 at 13:53, Joy Sun <[email protected]> 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
>
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to