On 12/08/17 09:04, Nick Hudson wrote:
On 12/08/17 03:26, Mouse wrote:[Brian Buhrow]1. [...]. Mutexes that use spin locks can't be used in interrupt context.Sure you don't have that backwards? I _think_ mutex(9) says that spin mutexes are the only ones that _can_ be used from an interrupt.Brain did get it backwards. To quote mutex(9)...
My brain got Brian backwards...
IPL_VM, IPL_SCHED, IPL_HIGHA spin mutex will be returned. Spin mutexes provide mutualexclusion between LWPs, and between LWPs and interrupt handlers. Nick