Thanks, Mulyadi,<div><br></div><div>Can you tell me which kernel part is monitoring those jobs which will trigger the interrupt? I mean, when we&#39;re making a device driver for the linux kernel, the very beginning job is registering &quot;probe&quot; function. However, I still don&#39;t know how the &quot;probe&quot; is actually called.</div>
<div><br></div><div>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&#39;t it that the USB Host Controller, itself is registerred by &quot;probe&quot;? If then, how kernel knows the controller is actually active on the bus?</div>
<div><br></div><div>J.</div><div><br><div class="gmail_quote">On Sun, Feb 6, 2011 at 11:31 PM, Mulyadi Santosa <span dir="ltr">&lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Feb 7, 2011 at 13:53, Joy Sun &lt;<a href="mailto:joy2sun127@gmail.com">joy2sun127@gmail.com</a>&gt; wrote:<br>

&gt; Hi,<br>
&gt; I am seeing probe function pointer and know the procedure to register of it<br>
&gt; for a specific device driver. However, I wonder when it is actually called?<br>
&gt; For example, for platform drivers, there is a structure like this:<br>
<br>
</div>Hi...<br>
<br>
AFAIK, it&#39;s mostly related to interrupt and/or bus handling. Whenever<br>
there is new device gets active, &quot;message&quot; is sent along to the bus,<br>
for example when you insert a USB flash disc.<br>
<br>
NB: Might be loosely related to HAL or udev<br>
<font color="#888888"><br>
<br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
</font></blockquote></div><br></div>