Skip to contentSkip to conversation

Getting Hot Plug/Unplug Notification

DISCUSSION Greg KH 2 participants 2 messages Jun 18, 2012

lore
Share & tools
lore

Greg KH

author
#0 lore raw
Quoted 3 lines · 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.

Quoted 1 line

How can i get VID/PID of USB device plugged out/in??

Yes.

Quoted 1 line

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

#1 lore raw

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