Re: When "probe" is called?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
On Mon, Feb 7, 2011 at 13:53, Joy Sun <joy2sun127@xxxxxxxxx> 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
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux