Discussion:
Getting Hot Plug/Unplug Notification
madhav chauhan
2012-06-18 18:19:32 UTC
Permalink
Hi All,
I want to get hot plug event in my C code whenever USB device is
plugged in/out.
How can i get VID/PID of USB device plugged out/in??
Can somebody help me for the same, any sample code available??


Regards,
Madhav
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
2012-06-18 18:23:13 UTC
Permalink
Post by madhav chauhan
Hi All,
I want to get hot plug event in my C code whenever USB device is
plugged in/out.
Link to libudev for this.
Post by madhav chauhan
How can i get VID/PID of USB device plugged out/in??
Yes.
Post by madhav chauhan
Can somebody help me for the same, any sample code available??
Look at the libudev examples, they should help you out.

Hope this helps,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...