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

Go to the source code of this file.

Macros

#define ext2_set_bit_atomic(lock, nr, addr)
 
#define ext2_clear_bit_atomic(lock, nr, addr)
 

Macro Definition Documentation

#define ext2_clear_bit_atomic (   lock,
  nr,
  addr 
)
Value:
({ \
int ret; \
spin_lock(lock); \
ret = __test_and_clear_bit_le(nr, addr); \
spin_unlock(lock); \
ret; \
})

Definition at line 17 of file ext2-atomic.h.

#define ext2_set_bit_atomic (   lock,
  nr,
  addr 
)
Value:
({ \
int ret; \
spin_lock(lock); \
ret = __test_and_set_bit_le(nr, addr); \
spin_unlock(lock); \
ret; \
})

Definition at line 8 of file ext2-atomic.h.