linux kernel 工程师
全部博文(99)
发布时间:2014-02-08 15:26:46
__setup_irq是request_irq的核心部分,真正实现把 irqaction添加到irq_desc上面/* * Internal function to register an irqaction - typically used to * allocate special interrupts that are part of the architecture. */static int__setup_irq(unsigned int irq, struct irq_desc *desc, .........【阅读全文】
发布时间:2014-02-08 15:14:36
注册中断的函数是request_irq,实际上这个函数会调用request_threaded_irq,但由于调用request_threaded_irq(irq, handler, NULL, flags, name, dev);时,参数3,也就是thread_fn为NULL,调用request_irq注册的isr不会被线程化。request_threaded_irq(unsigned int irq, irq_handler_t handler, .........【阅读全文】
发布时间:2014-02-08 15:02:09
__irq_set_handler作为中断注册的第一个层次,通过这个函数为desc->handle_irq 安排一个处理函数。
通常安排的处理函数有handle_edge_irq,handle_level_irq等......【阅读全文】
发布时间:2014-02-08 14:45:42
irq的注册分为两个层次,
1. __irq_set_handler
2. request_irq
......【阅读全文】
发布时间:2014-02-05 17:58:05
/** * worker_thread - the worker thread function * @__worker: self * * The gcwq worker thread function. There's a single dynamic pool of * these per each cpu. These workers process all works regardless of * their specific target workqueue. The.........【阅读全文】