<p dir="ltr">Wouldn't udev be the thing for this?</p>
<p dir="ltr">When new h/w gets added it removed, udev will inform you via events. You can then do whatever you want in resp to it, eg send a msg over dbus to your specific service informing it of the event.</p>
<p dir="ltr">Look at how std Linux distros handle such scenarios using udev.</p>
<p dir="ltr">-mandeep<br>
</p>
<div class="gmail_quote">On Mar 22, 2013 7:54 PM, "Keyur" <<a href="mailto:keyur.patel@einfochips.com">keyur.patel@einfochips.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
My requirement is to monitor Ethernet and other peripherals on my board.<br>
I need some mechanism using dbus from which whenever there is hardware change on board my application get notified. and according to that i can make further changes from my application.<br>
<br>
Can anyone provide my simple example of above use case?<br>
<br>
<br>
Regards,<br>
Keyur<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---<br>
Notice: This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---<br>
______________________________<u></u>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/dbus</a><br>
</blockquote></div>