Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
spinlock_types.h
Go to the documentation of this file.
1 #ifndef __ASM_SPINLOCK_TYPES_H
2 #define __ASM_SPINLOCK_TYPES_H
3 
4 #ifndef __LINUX_SPINLOCK_TYPES_H
5 # error "please don't include this file directly"
6 #endif
7 
8 #define TICKET_SHIFT 16
9 
10 typedef struct {
11  union {
13  struct __raw_tickets {
14 #ifdef __ARMEB__
15  u16 next;
16  u16 owner;
17 #else
20 #endif
21  } tickets;
22  };
24 
25 #define __ARCH_SPIN_LOCK_UNLOCKED { { 0 } }
26 
27 typedef struct {
28  volatile unsigned int lock;
30 
31 #define __ARCH_RW_LOCK_UNLOCKED { 0 }
32 
33 #endif