阅读背景:

如何检测或测试unix/linux开发节点创建的usb闪存驱动器插入

来源:互联网 

I'm coding in C on a linux system. I want to insert a USB flash drive, let udev create the dev nodes (at /dev/sdc and /dev/sdc1, for example), and take an action only when /dev/sdc appears. What I've been doing is thinking of this as a wait loop in my C application, waiting for a dev node to be created by the udev daemon. Something like the following:I'm coding in C on a linux system. I want to in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: