https://github.com/torvalds/linux
Raw File
Tip revision: e478bec0ba0a83a48a0f6982934b6de079e7e6b3 authored by Linus Torvalds on 20 September 2006, 03:42:06 UTC
Linux v2.6.18. Arrr!
Tip revision: e478bec
spinlock_types.h
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
	volatile unsigned int lock;
} __attribute__ ((aligned (4))) raw_spinlock_t;

#define __RAW_SPIN_LOCK_UNLOCKED	{ 0 }

typedef struct {
	volatile unsigned int lock;
	volatile unsigned int owner_pc;
} raw_rwlock_t;

#define __RAW_RW_LOCK_UNLOCKED		{ 0, 0 }

#endif
back to top