Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/spinlock.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | if (likely(__ret != 0)) \ | ||||
local_bh_disable(); \ | local_bh_disable(); \ | ||||
} \ | } \ | ||||
__ret; \ | __ret; \ | ||||
}) | }) | ||||
#define spin_trylock_irq(_l) \ | #define spin_trylock_irq(_l) \ | ||||
spin_trylock(_l) | spin_trylock(_l) | ||||
#define spin_trylock_irqsave(_l, flags) ({ \ | |||||
(flags) = 0; \ | |||||
spin_trylock(_l); \ | |||||
}) | |||||
#define spin_lock_nested(_l, _n) do { \ | #define spin_lock_nested(_l, _n) do { \ | ||||
if (SPIN_SKIP()) \ | if (SPIN_SKIP()) \ | ||||
break; \ | break; \ | ||||
mtx_lock_flags(&(_l)->m, MTX_DUPOK); \ | mtx_lock_flags(&(_l)->m, MTX_DUPOK); \ | ||||
local_bh_disable(); \ | local_bh_disable(); \ | ||||
} while (0) | } while (0) | ||||
#define spin_lock_irqsave(_l, flags) do { \ | #define spin_lock_irqsave(_l, flags) do { \ | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |