https://github.com/torvalds/linux
Raw File
Tip revision: a38d6181ff27824c79fc7df825164a212eff6a3f authored by Linus Torvalds on 01 July 2007, 19:54:24 UTC
Linux 2.6.22-rc7
Tip revision: a38d618
spinlock_types.h
#ifndef _ASM_IA64_SPINLOCK_TYPES_H
#define _ASM_IA64_SPINLOCK_TYPES_H

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

typedef struct {
	volatile unsigned int lock;
} raw_spinlock_t;

#define __RAW_SPIN_LOCK_UNLOCKED	{ 0 }

typedef struct {
	volatile unsigned int read_counter	: 31;
	volatile unsigned int write_lock	:  1;
} raw_rwlock_t;

#define __RAW_RW_LOCK_UNLOCKED		{ 0, 0 }

#endif
back to top