最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

What limits the number of IRQ descriptors a Linux platform can support? - Stack Overflow

programmeradmin1浏览0评论

So I have an older hardware platform, which has a hard-coded NR_IRQS defined in the kernel to specify the number of available IRQ descriptors. This limit corresponds to the total number of hardware interrupts, plus the number of available GPIO on this device.

While trying to use a new peripheral recently that uses IIO triggering, I realized that all the available IRQ descriptors defined for this platform are allocated on startup. There's no room left in the irq_desc array for IIO to register new software interrupts. But if I just increase NR_IRQS arbitrarily, then everything seems to work just fine.

I find it strange that my platform allocates descriptors for all the available hardware interrupts and GPIO, but doesn't allow for other arbitrary software interrupts. So my question is: what determines the limit for how many IRQ descriptors can be defined for any given platform, assuming the interrupts are software based?

发布评论

评论列表(0)

  1. 暂无评论