It's called
in_interrupt()
in Linux - it's not a single counter, as hard interrupts and soft
interrupts are counted separately, but it gives you the information you
want (whether you're in an interrupt or not).
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/