摘要: spinlock的数据结构spinlock_t定义在头文件linux/spinlock_types.h里面: 20 typedef struct { 21 raw_spinlock_t raw_lock; 22 #ifdef CONFIG_GENERIC_LOCKBREAK 23 unsigned int break_lock; 24 #endif 25 #ifdef CONFIG_DEBUG_SPINLOCK 26 unsigned int magic, owner_cpu; 27 void *owner; 28 #e... 阅读全文
posted @ 2013-07-31 17:14 Rofael 阅读(3390) 评论(0) 推荐(0) 编辑