Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Nov 2010 13:58:02 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-hackers@freebsd.org
Cc:        Andriy Gapon <avg@freebsd.org>
Subject:   Best way to determine if an IRQ is present
Message-ID:  <AANLkTi=%2ByXVrcWDC1QZLA0JWNOQjWG%2Bud_BmwiMXAMXt@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
    Trying to do a complete solution for kern/145385, Andriy has
raised concerns about IRQ mapping to CPUs; while I've have put
together more pieces of the puzzle, I'm a bit confused how I determine
whether or not an IRQ is available for use.
    Sure, I could linear probe a series of IRQs, but that would
probably be expensive, and different architectures treat IRQs
differently, so building assumptions based on the fact that IRQ
hierarchy is done in a particular order is probably not the best thing
to do.
    I've poked around kern/kern_cpuset.c and kern/kern_intr.c a bit
but I may have missed something important...
Thanks,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=%2ByXVrcWDC1QZLA0JWNOQjWG%2Bud_BmwiMXAMXt>