Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12239

Does linux have any macro to check whether current CPU core is executed in interrupt context?

$
0
0

I have some code which I don't want to be executed from interrupt context. To detect this, I want to trigger BUG() from my code, but I need some macro which will tell me whether my code executed from interrupt handler or not. Does Linux have such macro?


Viewing all articles
Browse latest Browse all 12239