how to determine whether in irq context