Unreliable Guide To Hacking The Linux Kernel表示 You can tell you are in a hardware interrupt, because in_irq() returns true. Caution. Beware that this will return a false positive if interrupts are dis