免费注册 查看新帖 |

Chinaunix

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

request_irq [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-06 17:09 |只看该作者 |倒序浏览
warning: passing arg 2 of `request_irq' from incompatible pointer type
linux-2.6.24/include/linux/interrupt.h
---------------------------------------------------
extern int __must_check request_irq(unsigned int, irq_handler_t handler,
               unsigned long, const char *, void *);
typedef irqreturn_t (*irq_handler_t)(int, void *);
linux-2.6.10/include/linux/interrupt.h
---------------------------------------------------
extern int request_irq(unsigned int,
               irqreturn_t (*handler)(int, void *, struct pt_regs *),
               unsigned long, const char *, void *);
request_irq()返回-16
---------------------------------------------------
#define EBUSY 16 /* Device or resource busy */
表示中断已经被使用
中断处理程序的返回值

---------------------------------------------------
/*
* IRQ_NONE means we didn't handle it.
* IRQ_HANDLED means that we did have a valid interrupt and handled it.
* IRQ_RETVAL(x) selects on the two depending on x being non-zero (for handled)
*/
typedef int irqreturn_t;
#define IRQ_NONE        (0)
#define IRQ_HANDLED     (1)
#define IRQ_RETVAL(x)   ((x) != 0)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78225/showart_1274038.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP