cvs commit: src/sys/pci if_vr.c

M. Warner Losh imp at bsdimp.com
Sun Oct 31 13:20:47 PST 2004


In message: <20041031035037.59607.qmail at web21422.mail.yahoo.com>
            Matthew Jacob <mjacob44 at yahoo.com> writes:
: Shouldn't an API for adding or removing ISR's be responsible for
: handling just such a race condition?

It does.  After you've deregistered your interrupt, you are guaranteed
that (a) it will never be called again and (b) no one is currently in
that ISR.

However, if you just turn off the interrupts in the hardware device,
neither (a) nor (b) apply.

Warner


More information about the cvs-all mailing list