2009-12-01から1ヶ月間の記事一覧

mutex_init()

77 #ifdef CONFIG_DEBUG_MUTEXES 78 # include 79 #else 80 # define __DEBUG_MUTEX_INITIALIZER(lockname) 81 # define mutex_init(mutex) \ 82 do { \ 83 static struct lock_class_key __key; \ 84 \ 85 __mutex_init((mutex), #mutex, &__key); \ 86 } w…

struct mutex

48 struct mutex { 49 /* 1: unlocked, 0: locked, negative: locked, possible waiters */ 50 atomic_t count; 51 spinlock_t wait_lock; 52 struct list_head wait_list; 53 #if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_SMP) 54 struct thread_i…

Linuxのmutexの解析

以下、関連ありそうなソース ./Documentation/mutex-design.txt ./include/asm-generic/mutex-xchg.h ./include/asm-generic/mutex-dec.h ./include/asm-generic/mutex.h ./include/asm-generic/mutex-null.h ./include/linux/mutex-debug.h ./include/linux…