preemption enable/disable routines

2010-09-28 Thread akash kumar
Hi, Can some one tell me the routines in freebsd to enable and disable preemption. In linux we have preempt_enable and preempt_disable which does the functionality. In case freebsd, doesnot have such routines can i used mtx_lock_spin() to do the same? Thanks, Akash.

Re: preemption enable/disable routines

2010-09-28 Thread Alejandro Imass
On Tue, Sep 28, 2010 at 10:10 AM, akash kumar akashb...@yahoo.co.in wrote: Hi, Can some one tell me the routines in freebsd to enable and disable preemption. In linux we have preempt_enable and preempt_disable which does the functionality. In case freebsd, doesnot have such routines can i