Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 5d01410fe4d92081f349b013a2e7a95429e4f2c9 authored by Linus Torvalds on 23 November 2014, 23:25:20 UTC
Linux 3.18-rc6
Tip revision: 5d01410
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 {
	unsigned int lock;
} __attribute__ ((aligned (4))) arch_spinlock_t;

#define __ARCH_SPIN_LOCK_UNLOCKED { .lock = 0, }

typedef struct {
	unsigned int lock;
	unsigned int owner;
} arch_rwlock_t;

#define __ARCH_RW_LOCK_UNLOCKED		{ 0 }

#endif
back to top