Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
Macros | Typedefs | Functions
spinlock.h File Reference
#include <stdint.h>
Include dependency graph for spinlock.h:

Go to the source code of this file.

Macros

#define spin_lock_irq(lock)
 
#define spin_unlock_irq(lock)
 

Typedefs

typedef uint32_t spinlock_t
 

Functions

void spin_lock (spinlock_t *lock)
 
void spin_unlock (spinlock_t *lock)
 

Macro Definition Documentation

◆ spin_lock_irq

#define spin_lock_irq (   lock)
Value:
do { \
preempt_disable(); \
spin_lock(lock); \
} while (0)

◆ spin_unlock_irq

#define spin_unlock_irq (   lock)
Value:
do { \
spin_unlock(lock); \
preempt_enable(); \
} while (0)