Zephyr Project API  3.2.0
A Scalable Open Source RTOS
spinlock.h File Reference

Public interface for spinlocks. More...

#include <zephyr/sys/atomic.h>
#include <zephyr/sys/__assert.h>
#include <stdbool.h>
#include <zephyr/arch/cpu.h>

Go to the source code of this file.

Data Structures

struct  k_spinlock
 Kernel Spin Lock. More...
 

Typedefs

typedef struct z_spinlock_key k_spinlock_key_t
 Spinlock key type. More...
 

Functions

static ALWAYS_INLINE k_spinlock_key_t k_spin_lock (struct k_spinlock *l)
 Lock a spinlock. More...
 
static ALWAYS_INLINE void k_spin_unlock (struct k_spinlock *l, k_spinlock_key_t key)
 Unlock a spin lock. More...
 
static ALWAYS_INLINE void k_spin_release (struct k_spinlock *l)
 

Detailed Description

Public interface for spinlocks.