Warner Losh wrote:
>
> In message <[EMAIL PROTECTED]> Guido van Rooij writes:
> : perhaps we need some mutex mechanism?
>
> Yes. Right now the mutex mechanism that we have is blocking of
> interrupts when the bit is set in the cpl. I guess I'm a little too
> close to the mechanism and need to step back.
>
> You are right that I'm asking for a call that is approximately "block
> my interrupt handler from running until I say it is ok." A more
> generalized mutex/locking scheme is needed so that I can just grab a
> mutex in my code and in my ISR and the right thing will just happen.
A per-driver mutex, perhaps? This would save us from potential
deadly embraces within a single driver, at least.
--
"Where am I, and what am I doing in this handbasket?"
Wes Peters Softweyr LLC
[EMAIL PROTECTED] http://softweyr.com/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message