ChinaUnix.net
相关文章推荐:

pci warningcard request irq

本帖最后由 zhangxujun1981 于 2010-12-20 09:43 编辑 平台: linux2.6.34.7 s3c6410 我调用request_irq去申请一个中断,即端口GPP9, 但是失败了,提示-EINVAL;所以我想跟踪分析是什么原因. 程序如下: irq_misc=irq_EINT_GROUP(8,9); ret = request_irq( irq_misc, irq_handle,irqF_DISABLED, DEVICE,my_dev); (我测试了一下使用其他中断,如irq_misc=irq_EINT(14);是可以成功的) request_irq -> request_threaded_irq(linux/ker...

by zhangxujun1981 - 嵌入式开发 - 2010-12-21 10:20:01 阅读(5466) 回复(4)

相关讨论

request_irq成功申请一个中断后,为什么中断处理函数没有被调用?可能有哪些原因?

by hxh88888888 - C/C++ - 2010-06-04 16:50:45 阅读(1533) 回复(5)

Kernel中断处理模型结构图如下: 下面简单介绍一下: 1. Linux定义了名字为irq_desc的中断例程描述符表:(include/linux/irq.h) struct irqdesc irq_desc[NR_irqS]; NR_irqS表示中断源的数目。 2. irq_desc[]是一个指向irq_desc_t结构的数组, irq_desc_t结构是各个设备中断服务例程的描述符。irq_desc_t结构体中的成员action指向该中断号对应的irqaction结构体链表。irqaction结构体定义如下: /* include/linux/inter...

by cssjtuer - Linux文档专区 - 2009-10-11 16:46:09 阅读(12457) 回复(0)

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 ----------------------...

by yuchuan2008 - Linux文档专区 - 2008-10-06 17:09:16 阅读(551) 回复(0)

int request_irq( unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *), unsigned long flags, const char *dev_name, void *dev_id ); const char *dev_name 这个是一个字符串,它的作用是什么? 在什么目录下可以看到?(我试了下,好像在 /proc/interrupts 下面是看不到的)

by qiangqiang02 - 驱动开发 - 2009-10-29 19:54:48 阅读(3161) 回复(4)

目前正在调试一款设备,此设备支持中断模式,即插入pci槽后,系统自动分配中断号。由于其他原因,我需要把中断模式改为轮询模式,目前这么操作的不注册中断处理函数,在程序中顺序执行,while等待如果是自己的中断清中断然后拷贝数据。压力测试中提示 Jul 18 17:09:56 ubuntu kernel: [ 1942.318771] pcidemo: probe of 0000:03:00.0 failed with error -1 Jul 18 17:11:07 ubuntu kernel: [ 2013.409141] irq 16: nobody cared (t...

by sangshener - Linux系统管理 - 2013-06-20 09:50:20 阅读(1042) 回复(0)

Linux 内核提供了两个注册中断处理函数的接口:setup_irqrequest_irq。这两个函数都定义在kernel/irq/manage.c里。 /* * Internal function to register an irqaction - typically used to * allocate special interrupts that are part of the architecture. */ int setup_irq(unsigned int irq, struct irqaction *new); /* * request_irq - allocate an interrupt line * This call allocates interrupt resourc...

by fpseustar - Linux文档专区 - 2009-12-23 20:01:33 阅读(837) 回复(0)

Author: Dongas Data: 08-07-19 Linux 内核提供了两个注册中断处理函数的接口:setup_irqrequest_irq。这两个函数都定义在kernel/irq/manage.c里。 /* * Internal function to register an irqaction - typically used to * allocate special interrupts that are part of the architecture. */ int setup_irq(unsigned int irq, struct irqaction *new); /* * request_irq - allocate an interrupt line * This ...

by soararing - Linux文档专区 - 2009-07-06 10:37:02 阅读(485) 回复(0)

Author: Dongas Data: 08-07-19 Linux 内核提供了两个注册中断处理函数的接口:setup_irqrequest_irq。这两个函数都定义在kernel/irq/manage.c里。 /* * Internal function to register an irqaction - typically used to * allocate special interrupts that are part of the architecture. */ int setup_irq(unsigned int irq, struct irqaction *new); /* * request_irq - allocate an interrupt line * This ...

by vector_leizi - Linux文档专区 - 2009-05-08 14:55:35 阅读(570) 回复(0)

Linux 内核提供了两个注册中断处理函数的接口:setup_irqrequest_irq。这两个函数都定义在kernel/irq/manage.c里。 /* * Internal function to register an irqaction - typically used to * allocate special interrupts that are part of the architecture. */ int setup_irq(unsigned int irq, struct irqaction *new); /* * request_irq - allocate an interrupt line * This call allocates interrupt resourc...

by soararing - Linux文档专区 - 2009-04-13 15:05:31 阅读(496) 回复(0)

request_irq和setup_irq的区别 Author: Dongas Data: 08-07-19 Linux 内核提供了两个注册中断处理函数的接口:setup_irqrequest_irq。这两个函数都定义在kernel/irq/manage.c里。 /* * Internal function to register an irqaction - typically used to * allocate special interrupts that are part of the architecture. */ int setup_irq(unsigned int irq, struct irqaction *new); /* * request_irq - allocate ...

by dongas - Linux文档专区 - 2008-07-19 20:41:00 阅读(1659) 回复(0)