File indexing completed on 2025-05-11 08:24:17
0001 #ifndef __LINUX_MUTEX_H
0002 #define __LINUX_MUTEX_H
0003
0004 struct mutex { };
0005
0006 #define DEFINE_MUTEX(m) struct mutex m
0007
0008 static inline void mutex_init(struct mutex *m)
0009 {
0010 (void) m;
0011 }
0012
0013 static inline void mutex_lock(struct mutex *m)
0014 {
0015 (void) m;
0016 }
0017
0018 static inline int mutex_lock_interruptible(struct mutex *m)
0019 {
0020 (void) m;
0021 return 0;
0022 }
0023
0024 static inline void mutex_unlock(struct mutex *m)
0025 {
0026 (void) m;
0027 }
0028
0029 #define mutex_is_locked(m) 1
0030
0031 #endif