中断线程化可以提高Linux的实时性能。它包括soft和hard irqs。
• Device drivers register interrupt handler with usual
interface (request_irq())
– No modifications required in device drivers
• A thread is created for the IRQ
– Only one thread per IRQ
• Kernel keeps a list of ISRs for each IRQ
7
– ISRs are sequentially invoked for shared IRQs
• Some drivers may not want their interrupt handlers
threaded (e.g., clock and serial I/O on FreeBSD)
– IRQ_NODELAY flag for non-threaded IRQs
阅读(632) | 评论(0) | 转发(0) |