9p-trans_fd: clean up p9_conn_create()
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / spinlock_api_smp.h
blobd79845d034b530372ff0049655179525a45dffc0
1 #ifndef __LINUX_SPINLOCK_API_SMP_H
2 #define __LINUX_SPINLOCK_API_SMP_H
4 #ifndef __LINUX_SPINLOCK_H
5 # error "please don't include this file directly"
6 #endif
8 /*
9 * include/linux/spinlock_api_smp.h
11 * spinlock API declarations on SMP (and debug)
12 * (implemented in kernel/spinlock.c)
14 * portions Copyright 2005, Red Hat, Inc., Ingo Molnar
15 * Released under the General Public License (GPL).
18 int in_lock_functions(unsigned long addr);
20 #define assert_spin_locked(x) BUG_ON(!spin_is_locked(x))
22 void __lockfunc _spin_lock(spinlock_t *lock) __acquires(lock);
23 void __lockfunc _spin_lock_nested(spinlock_t *lock, int subclass)
24 __acquires(lock);
25 void __lockfunc _spin_lock_nest_lock(spinlock_t *lock, struct lockdep_map *map)
26 __acquires(lock);
27 void __lockfunc _read_lock(rwlock_t *lock) __acquires(lock);
28 void __lockfunc _write_lock(rwlock_t *lock) __acquires(lock);
29 void __lockfunc _spin_lock_bh(spinlock_t *lock) __acquires(lock);
30 void __lockfunc _read_lock_bh(rwlock_t *lock) __acquires(lock);
31 void __lockfunc _write_lock_bh(rwlock_t *lock) __acquires(lock);
32 void __lockfunc _spin_lock_irq(spinlock_t *lock) __acquires(lock);
33 void __lockfunc _read_lock_irq(rwlock_t *lock) __acquires(lock);
34 void __lockfunc _write_lock_irq(rwlock_t *lock) __acquires(lock);
35 unsigned long __lockfunc _spin_lock_irqsave(spinlock_t *lock)
36 __acquires(lock);
37 unsigned long __lockfunc _spin_lock_irqsave_nested(spinlock_t *lock, int subclass)
38 __acquires(lock);
39 unsigned long __lockfunc _read_lock_irqsave(rwlock_t *lock)
40 __acquires(lock);
41 unsigned long __lockfunc _write_lock_irqsave(rwlock_t *lock)
42 __acquires(lock);
43 int __lockfunc _spin_trylock(spinlock_t *lock);
44 int __lockfunc _read_trylock(rwlock_t *lock);
45 int __lockfunc _write_trylock(rwlock_t *lock);
46 int __lockfunc _spin_trylock_bh(spinlock_t *lock);
47 void __lockfunc _spin_unlock(spinlock_t *lock) __releases(lock);
48 void __lockfunc _read_unlock(rwlock_t *lock) __releases(lock);
49 void __lockfunc _write_unlock(rwlock_t *lock) __releases(lock);
50 void __lockfunc _spin_unlock_bh(spinlock_t *lock) __releases(lock);
51 void __lockfunc _read_unlock_bh(rwlock_t *lock) __releases(lock);
52 void __lockfunc _write_unlock_bh(rwlock_t *lock) __releases(lock);
53 void __lockfunc _spin_unlock_irq(spinlock_t *lock) __releases(lock);
54 void __lockfunc _read_unlock_irq(rwlock_t *lock) __releases(lock);
55 void __lockfunc _write_unlock_irq(rwlock_t *lock) __releases(lock);
56 void __lockfunc _spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
57 __releases(lock);
58 void __lockfunc _read_unlock_irqrestore(rwlock_t *lock, unsigned long flags)
59 __releases(lock);
60 void __lockfunc _write_unlock_irqrestore(rwlock_t *lock, unsigned long flags)
61 __releases(lock);
63 #endif /* __LINUX_SPINLOCK_API_SMP_H */