How can I decide whether my code is running in interrupt
context or not?
John Baldwin
jhb at freebsd.org
Mon Mar 19 15:25:47 UTC 2012
On Thursday, March 15, 2012 10:06:13 pm Yong Fan wrote:
> Hi all,
>
> In Linux, I can use in_interrupt() function.
> FreeBSD has such a similar kernel function for drivers?
Hmm, we do not, though the only part of your driver that can run in primary
interrupt context is an interrupt filter. If you mean interrupt-thread
context (i.e. when sleeping is not permitted), then that would apply to your
normal interrupt handler and any callout routines that you have.
--
John Baldwin
More information about the freebsd-drivers
mailing list