|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Spin locks and interrupts disabling
Hi All,
I was looking at the linux kernel, and in the implementation of spinlocks, one can use different functions. One of them is spin_lock_bh(). What it does is it creates a spin lock and disables the software irqs. In FreeBSD on the other hand, the implementation of spinlocks is done by mtx_lock_spin (which is actually a macro that calls mtx_lock_spin_flags()) but the problem is that is disables all the irq vector (at the bottom of the stack it executes an "cli"). Is there any way one can implement spinlocks that only disable the bottom half (sof irq)? Alternatively, what would be the best way to manualy disable the soft irqs? Thank you for reading. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ati hd3650 fan spin up/down | ephemera | General Hardware | 4 | 14th April 2009 04:35 AM |
Possible to idle / spin-down SCSI drives? | sim | FreeBSD General | 3 | 6th November 2008 09:49 PM |
disabling ctrl-c | malindang | FreeBSD General | 3 | 27th June 2008 12:06 AM |
Nagios 2.12 locks | awd | FreeBSD Ports and Packages | 5 | 19th June 2008 10:38 AM |