Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
spinlock_api_up.h File Reference

Go to the source code of this file.

Macros

#define in_lock_functions(ADDR)   0
 
#define assert_raw_spin_locked(lock)   do { (void)(lock); } while (0)
 
#define __LOCK(lock)   do { preempt_disable(); __acquire(lock); (void)(lock); } while (0)
 
#define __LOCK_BH(lock)   do { local_bh_disable(); __LOCK(lock); } while (0)
 
#define __LOCK_IRQ(lock)   do { local_irq_disable(); __LOCK(lock); } while (0)
 
#define __LOCK_IRQSAVE(lock, flags)   do { local_irq_save(flags); __LOCK(lock); } while (0)
 
#define __UNLOCK(lock)   do { preempt_enable(); __release(lock); (void)(lock); } while (0)
 
#define __UNLOCK_BH(lock)
 
#define __UNLOCK_IRQ(lock)   do { local_irq_enable(); __UNLOCK(lock); } while (0)
 
#define __UNLOCK_IRQRESTORE(lock, flags)   do { local_irq_restore(flags); __UNLOCK(lock); } while (0)
 
#define _raw_spin_lock(lock)   __LOCK(lock)
 
#define _raw_spin_lock_nested(lock, subclass)   __LOCK(lock)
 
#define _raw_read_lock(lock)   __LOCK(lock)
 
#define _raw_write_lock(lock)   __LOCK(lock)
 
#define _raw_spin_lock_bh(lock)   __LOCK_BH(lock)
 
#define _raw_read_lock_bh(lock)   __LOCK_BH(lock)
 
#define _raw_write_lock_bh(lock)   __LOCK_BH(lock)
 
#define _raw_spin_lock_irq(lock)   __LOCK_IRQ(lock)
 
#define _raw_read_lock_irq(lock)   __LOCK_IRQ(lock)
 
#define _raw_write_lock_irq(lock)   __LOCK_IRQ(lock)
 
#define _raw_spin_lock_irqsave(lock, flags)   __LOCK_IRQSAVE(lock, flags)
 
#define _raw_read_lock_irqsave(lock, flags)   __LOCK_IRQSAVE(lock, flags)
 
#define _raw_write_lock_irqsave(lock, flags)   __LOCK_IRQSAVE(lock, flags)
 
#define _raw_spin_trylock(lock)   ({ __LOCK(lock); 1; })
 
#define _raw_read_trylock(lock)   ({ __LOCK(lock); 1; })
 
#define _raw_write_trylock(lock)   ({ __LOCK(lock); 1; })
 
#define _raw_spin_trylock_bh(lock)   ({ __LOCK_BH(lock); 1; })
 
#define _raw_spin_unlock(lock)   __UNLOCK(lock)
 
#define _raw_read_unlock(lock)   __UNLOCK(lock)
 
#define _raw_write_unlock(lock)   __UNLOCK(lock)
 
#define _raw_spin_unlock_bh(lock)   __UNLOCK_BH(lock)
 
#define _raw_write_unlock_bh(lock)   __UNLOCK_BH(lock)
 
#define _raw_read_unlock_bh(lock)   __UNLOCK_BH(lock)
 
#define _raw_spin_unlock_irq(lock)   __UNLOCK_IRQ(lock)
 
#define _raw_read_unlock_irq(lock)   __UNLOCK_IRQ(lock)
 
#define _raw_write_unlock_irq(lock)   __UNLOCK_IRQ(lock)
 
#define _raw_spin_unlock_irqrestore(lock, flags)   __UNLOCK_IRQRESTORE(lock, flags)
 
#define _raw_read_unlock_irqrestore(lock, flags)   __UNLOCK_IRQRESTORE(lock, flags)
 
#define _raw_write_unlock_irqrestore(lock, flags)   __UNLOCK_IRQRESTORE(lock, flags)
 

Macro Definition Documentation

#define __LOCK (   lock)    do { preempt_disable(); __acquire(lock); (void)(lock); } while (0)

Definition at line 27 of file spinlock_api_up.h.

#define __LOCK_BH (   lock)    do { local_bh_disable(); __LOCK(lock); } while (0)

Definition at line 30 of file spinlock_api_up.h.

#define __LOCK_IRQ (   lock)    do { local_irq_disable(); __LOCK(lock); } while (0)

Definition at line 33 of file spinlock_api_up.h.

#define __LOCK_IRQSAVE (   lock,
  flags 
)    do { local_irq_save(flags); __LOCK(lock); } while (0)

Definition at line 36 of file spinlock_api_up.h.

#define __UNLOCK (   lock)    do { preempt_enable(); __release(lock); (void)(lock); } while (0)

Definition at line 39 of file spinlock_api_up.h.

#define __UNLOCK_BH (   lock)
Value:
__release(lock); (void)(lock); } while (0)

Definition at line 42 of file spinlock_api_up.h.

#define __UNLOCK_IRQ (   lock)    do { local_irq_enable(); __UNLOCK(lock); } while (0)

Definition at line 46 of file spinlock_api_up.h.

#define __UNLOCK_IRQRESTORE (   lock,
  flags 
)    do { local_irq_restore(flags); __UNLOCK(lock); } while (0)

Definition at line 49 of file spinlock_api_up.h.

#define _raw_read_lock (   lock)    __LOCK(lock)

Definition at line 54 of file spinlock_api_up.h.

#define _raw_read_lock_bh (   lock)    __LOCK_BH(lock)

Definition at line 57 of file spinlock_api_up.h.

#define _raw_read_lock_irq (   lock)    __LOCK_IRQ(lock)

Definition at line 60 of file spinlock_api_up.h.

#define _raw_read_lock_irqsave (   lock,
  flags 
)    __LOCK_IRQSAVE(lock, flags)

Definition at line 63 of file spinlock_api_up.h.

#define _raw_read_trylock (   lock)    ({ __LOCK(lock); 1; })

Definition at line 66 of file spinlock_api_up.h.

#define _raw_read_unlock (   lock)    __UNLOCK(lock)

Definition at line 70 of file spinlock_api_up.h.

#define _raw_read_unlock_bh (   lock)    __UNLOCK_BH(lock)

Definition at line 74 of file spinlock_api_up.h.

#define _raw_read_unlock_irq (   lock)    __UNLOCK_IRQ(lock)

Definition at line 76 of file spinlock_api_up.h.

#define _raw_read_unlock_irqrestore (   lock,
  flags 
)    __UNLOCK_IRQRESTORE(lock, flags)

Definition at line 80 of file spinlock_api_up.h.

#define _raw_spin_lock (   lock)    __LOCK(lock)

Definition at line 52 of file spinlock_api_up.h.

#define _raw_spin_lock_bh (   lock)    __LOCK_BH(lock)

Definition at line 56 of file spinlock_api_up.h.

#define _raw_spin_lock_irq (   lock)    __LOCK_IRQ(lock)

Definition at line 59 of file spinlock_api_up.h.

#define _raw_spin_lock_irqsave (   lock,
  flags 
)    __LOCK_IRQSAVE(lock, flags)

Definition at line 62 of file spinlock_api_up.h.

#define _raw_spin_lock_nested (   lock,
  subclass 
)    __LOCK(lock)

Definition at line 53 of file spinlock_api_up.h.

#define _raw_spin_trylock (   lock)    ({ __LOCK(lock); 1; })

Definition at line 65 of file spinlock_api_up.h.

#define _raw_spin_trylock_bh (   lock)    ({ __LOCK_BH(lock); 1; })

Definition at line 68 of file spinlock_api_up.h.

#define _raw_spin_unlock (   lock)    __UNLOCK(lock)

Definition at line 69 of file spinlock_api_up.h.

#define _raw_spin_unlock_bh (   lock)    __UNLOCK_BH(lock)

Definition at line 72 of file spinlock_api_up.h.

#define _raw_spin_unlock_irq (   lock)    __UNLOCK_IRQ(lock)

Definition at line 75 of file spinlock_api_up.h.

#define _raw_spin_unlock_irqrestore (   lock,
  flags 
)    __UNLOCK_IRQRESTORE(lock, flags)

Definition at line 78 of file spinlock_api_up.h.

#define _raw_write_lock (   lock)    __LOCK(lock)

Definition at line 55 of file spinlock_api_up.h.

#define _raw_write_lock_bh (   lock)    __LOCK_BH(lock)

Definition at line 58 of file spinlock_api_up.h.

#define _raw_write_lock_irq (   lock)    __LOCK_IRQ(lock)

Definition at line 61 of file spinlock_api_up.h.

#define _raw_write_lock_irqsave (   lock,
  flags 
)    __LOCK_IRQSAVE(lock, flags)

Definition at line 64 of file spinlock_api_up.h.

#define _raw_write_trylock (   lock)    ({ __LOCK(lock); 1; })

Definition at line 67 of file spinlock_api_up.h.

#define _raw_write_unlock (   lock)    __UNLOCK(lock)

Definition at line 71 of file spinlock_api_up.h.

#define _raw_write_unlock_bh (   lock)    __UNLOCK_BH(lock)

Definition at line 73 of file spinlock_api_up.h.

#define _raw_write_unlock_irq (   lock)    __UNLOCK_IRQ(lock)

Definition at line 77 of file spinlock_api_up.h.

#define _raw_write_unlock_irqrestore (   lock,
  flags 
)    __UNLOCK_IRQRESTORE(lock, flags)

Definition at line 82 of file spinlock_api_up.h.

#define assert_raw_spin_locked (   lock)    do { (void)(lock); } while (0)

Definition at line 19 of file spinlock_api_up.h.

#define in_lock_functions (   ADDR)    0

Definition at line 17 of file spinlock_api_up.h.