Raw Spinlock
include/sync/raw_spinlock.h View source View on GitHubStructs
Section titled “Structs”raw_spinlock
Section titled “raw_spinlock”struct raw_spinlock {
_Atomic uint8_t state;
}; Functions
Section titled “Functions”raw_spinlock_init
Section titled “raw_spinlock_init”void raw_spinlock_init(struct raw_spinlock *lock); raw_spin_trylock
Section titled “raw_spin_trylock”bool raw_spin_trylock(struct raw_spinlock *lock); raw_spin_lock
Section titled “raw_spin_lock”void raw_spin_lock(struct raw_spinlock *lock); raw_spin_unlock
Section titled “raw_spin_unlock”void raw_spin_unlock(struct raw_spinlock *lock); raw_spin_lock_irq_disable
Section titled “raw_spin_lock_irq_disable”bool raw_spin_lock_irq_disable(struct raw_spinlock *lock); raw_spin_unlock_irq_restore
Section titled “raw_spin_unlock_irq_restore”void raw_spin_unlock_irq_restore(struct raw_spinlock *lock, bool irqs_were_enabled); Macros
Section titled “Macros”RAW_SPINLOCK_INIT
Section titled “RAW_SPINLOCK_INIT”#define RAW_SPINLOCK_INIT ((struct raw_spinlock) {.state = ATOMIC_VAR_INIT(0)}) RAW_SPINLOCK_DEFINE
Section titled “RAW_SPINLOCK_DEFINE”#define RAW_SPINLOCK_DEFINE(id) struct raw_spinlock id = RAW_SPINLOCK_INIT