2008-06-10 23:08:30     How to dynamically detect the USB device plugin or plugout?

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-06-10 23:08:30     How to dynamically detect the USB device plugin or plugout?

Zhi Qiang Zhang (CHINA)

Message: 56951   

 

How to dynamically detect the USB device plugin or plugout in a user space program?

 

 

 

Regards,

 

ZhangZQ

QuoteReplyEditDelete

 

 

2008-06-11 00:48:03     Re: How to dynamically detect the USB device plugin or plugout?

Mike Frysinger (UNITED STATES)

Message: 56955   

 

use the hotplug mechanism:

 

http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:hotplug

QuoteReplyEditDelete

 

 

2008-06-11 01:08:01     Re: How to dynamically detect the USB device plugin or plugout?

Zhi Qiang Zhang (CHINA)

Message: 56958   

 

Do you mean check the /sys/block to see if  there is a newly added device? Does the system fire a signal when a USB device plugin?

 

 

 

Regards,

 

ZhangZQ

Attachments

    Outcomes