主题 : 对USB设备进行的ioctl为什么会停止?? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 63413
精华: 0
发帖: 30
金钱: 150 两
威望: 30 点
综合积分: 60 分
注册时间: 2012-02-19
最后登录: 2014-05-21
楼主  发表于: 2012-11-01 10:56

 对USB设备进行的ioctl为什么会停止??

如下:
ioctl(fd, IOCTL_USB_CONNECTINFO, &connectinfo);
函数就停止在这里不动了

其中fd是 /proc/bus/usb/002/001的设备文件描述符

IOCTL_USB_CONNECTINFO的定义为  #define IOCTL_USB_CONNECTINFO  _IOR('U',17,struct usb_connectinfo)

connectinfo 是struct usb_connectinfo类型指针
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-11-01 11:50
你已经发了http://www.aiothome.net/read.php?tid-24360.html。 不要重复发帖。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."