免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3345 | 回复: 6
打印 上一主题 下一主题

ioctl里面的参数 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-14 13:43 |只看该作者 |倒序浏览
ioctl(fdusb,HIDIOCINITREPORT,NULL);


中的HIDIOCINITREPORT请问代表的是什么东西呢?  如果对于以后再对于一些宏的东西不了解. 请问有什么方法可以在系统里面
可以查找出来呢?

论坛徽章:
0
2 [报告]
发表于 2008-01-14 13:44 |只看该作者
UNPv1

论坛徽章:
0
3 [报告]
发表于 2008-01-14 14:11 |只看该作者
原帖由 cugb_cat 于 2008-1-14 13:44 发表
UNPv1



什么东西?

论坛徽章:
0
4 [报告]
发表于 2008-01-14 14:12 |只看该作者

回复 #3 linuxcici 的帖子

一本书

论坛徽章:
0
5 [报告]
发表于 2008-04-02 10:25 |只看该作者

回复 #1 linuxcici 的帖子

楼主现在也在ioctl,我也是,很头疼。

论坛徽章:
0
6 [报告]
发表于 2008-04-02 10:38 |只看该作者
man ioctl_list

论坛徽章:
3
2015年迎新春徽章
日期:2015-03-04 09:56:11数据库技术版块每日发帖之星
日期:2016-08-03 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
7 [报告]
发表于 2008-04-02 11:08 |只看该作者
看源码
/*
* Initialize all reports
*/
        /*
         * The Set_Idle request is supposed to affect only the
         * "Interrupt In" pipe. Unfortunately, buggy devices such as
         * the BTC keyboard (ID 046e:5303) the request also affects
         * Get_Report requests on the control pipe.  In the worst
         * case, if the device was put on idle for an indefinite
         * amount of time (as we do below) and there are no input
         * events to report, the Get_Report requests will just hang
         * until we get a USB timeout.  To avoid this, we temporarily
         * establish a minimal idle time of 1ms.  This shouldn't hurt
         * bugfree devices and will cause a worst-case extra delay of
         * 1ms for buggy ones.
         */
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP