I find mtx_lock_spin() API will disable local CPU interrupts while holding a spin lock.
In linux, while acquiring a spin lock, spin_lock_bh() API just spins, doesn't disables local CPU interrupts and never sleeps. Does FreeBSD have such API for spin lock? In other words, I need a spin lock, which just spins, never sleeps and doesn't disable local CPU interrupts.
thanks
In linux, while acquiring a spin lock, spin_lock_bh() API just spins, doesn't disables local CPU interrupts and never sleeps. Does FreeBSD have such API for spin lock? In other words, I need a spin lock, which just spins, never sleeps and doesn't disable local CPU interrupts.
thanks