RTEMS: cpukit/libfs/src/jffs2/include/linux/spinlock.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
spinlock.h
1#ifndef __LINUX_SPINLOCK_H__
2#define __LINUX_SPINLOCK_H__
3
4
5 typedef struct { } spinlock_t;
6#define SPIN_LOCK_UNLOCKED (spinlock_t) { }
7#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
8
9#define spin_lock_init(lock) \
10CYG_MACRO_START; \
11CYG_UNUSED_PARAM(spinlock_t *, lock); \
12CYG_MACRO_END
13
14#define spin_lock(lock) \
15CYG_MACRO_START; \
16CYG_UNUSED_PARAM(spinlock_t *, lock); \
17CYG_MACRO_END
18
19#define spin_unlock(lock) \
20CYG_MACRO_START; \
21CYG_UNUSED_PARAM(spinlock_t *, lock); \
22CYG_MACRO_END
23
24#define spin_lock_bh(lock) \
25CYG_MACRO_START; \
26CYG_UNUSED_PARAM(spinlock_t *, lock); \
27CYG_MACRO_END
28
29#define spin_unlock_bh(lock) \
30CYG_MACRO_START; \
31CYG_UNUSED_PARAM(spinlock_t *, lock); \
32CYG_MACRO_END
33
34#endif /* __LINUX_SPINLOCK_H__ */
spinlock_t
Definition: spinlock.h:5