Function ostd::trap::in_interrupt_context
source ยท pub fn in_interrupt_context() -> bool
Expand description
Returns whether we are in the interrupt context.
FIXME: Here only hardware irq is taken into account. According to linux implementation, if we are in softirq context, or bottom half is disabled, this function also returns true.