Changeset 679 for GPL/trunk/include/linux/mutex.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/mutex.h
r76 r679 3 3 4 4 #include <asm/semaphore.h> 5 #include <linux/list.h> 6 #include <linux/types.h> 7 8 struct mutex { 9 atomic_long_t owner; 10 spinlock_t wait_lock; 11 #ifdef CONFIG_MUTEX_SPIN_ON_OWNER 12 struct optimistic_spin_queue osq; /* Spinner MCS lock */ 13 #endif 14 struct list_head wait_list; 15 #ifdef CONFIG_DEBUG_MUTEXES 16 void *magic; 17 #endif 18 #ifdef CONFIG_DEBUG_LOCK_ALLOC 19 struct lockdep_map dep_map; 20 #endif 21 }; 5 22 6 23 #define mutex semaphore … … 11 28 #define mutex_lock_interruptible(x) down_interruptible(x) 12 29 #define mutex_unlock(x) up(x) 13 30 #define mutex_lock_nested(lock, subclass) mutex_lock(lock) 31 static inline int mutex_trylock(struct mutex *lock) {return -1; } 14 32 #endif
Note:
See TracChangeset
for help on using the changeset viewer.