typedef struct spinlock { union { struct raw_spinlock rlock;
#ifdef CONFIG_DEBUG_LOCK_ALLOC
(略) struct { u8 __padding[LOCK_PADSIZE];
struct lockdep_map dep_map;
spinlock_t s; としたとき、 s.rlock.dep_map と s.dep_map は全く同じメモリ領域を指す。
}; #endif }; } spinlock_t;