RTEMS CPU Kit with SuperCore
4.11.2
mnt
data0
chrisj
rtems
releases
rtems-release.git
4.11.2
ws-rtems
rtems-4.11.2
cpukit
libfs
src
jffs2
include
linux
spinlock.h
Go to the documentation of this file.
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) \
10
CYG_MACRO_START; \
11
CYG_UNUSED_PARAM(spinlock_t *, lock); \
12
CYG_MACRO_END
13
14
#define spin_lock(lock) \
15
CYG_MACRO_START; \
16
CYG_UNUSED_PARAM(spinlock_t *, lock); \
17
CYG_MACRO_END
18
19
#define spin_unlock(lock) \
20
CYG_MACRO_START; \
21
CYG_UNUSED_PARAM(spinlock_t *, lock); \
22
CYG_MACRO_END
23
24
#define spin_lock_bh(lock) \
25
CYG_MACRO_START; \
26
CYG_UNUSED_PARAM(spinlock_t *, lock); \
27
CYG_MACRO_END
28
29
#define spin_unlock_bh(lock) \
30
CYG_MACRO_START; \
31
CYG_UNUSED_PARAM(spinlock_t *, lock); \
32
CYG_MACRO_END
33
34
#endif
/* __LINUX_SPINLOCK_H__ */
spinlock_t
Definition:
spinlock.h:6
Generated by
1.8.13