DragonFly BSD
DragonFly kernel List (threaded) for 2006-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: splxxx replacements?


From: Gary Thorpe <gthorpe@xxxxxxxxxxxxx>
Date: Tue, 14 Nov 2006 21:44:39 -0500

Simon 'corecode' Schubert wrote:
Yury Tarasievich wrote:

What are the functional equivalents of spl... functions?


crit_enter() and crit_exit(). They only defer interrupt execution on the same cpu, though. if you need system-wide serialization to a resource, you should consider using a spinlock or a serializer.

cheers
 simon


That's basically the equivalent of splhigh() and splx(): isn't that worse than blocking individual levels?




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]