IRQF_SHARED flag(共享中断)
多个设备共享同一个中断号,中断产生时,多个注册为同一个中断号的中断isr均被会执行:
irqreturn_t __handle_irq_event_percpu(struct irq_desc *desc, unsigned int *flags) for_each_action_of_desc(desc, action) { irqreturn_t res; trace_irq_handler_entry(irq, action); res = action->handler(irq, action->dev_id); trace_irq_handler_exit(irq, action, res);
/proc/interrupts里如果一个中断号是共享中断号,则它将会有多个interrupt name
中断绑核
cat /proc/irq/124/smp_affinity_list 查看绑定的CPU列表,(10进制表示)
# cat /proc/irq/124/smp_affinity_list 0
如上表示绑定的为CPU0
cat /proc/irq/124/smp_affinity 查看绑定的CPU列表 (16进制表示)
# cat /proc/irq/124/smp_affinity 00,00000000,00000001
from: http://t.zoukankan.com/zhangmingda-p-15196363.html
标签:中断,irq,misc,smp,affinity,action,proc From: https://www.cnblogs.com/aspirs/p/16939500.html