Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | test_and_set_bit_lock(nr, addr) test_and_set_bit(nr, addr) |
#define | clear_bit_unlock(nr, addr) |
#define | __clear_bit_unlock(nr, addr) |
__clear_bit_unlock - Clear a bit in memory, for unlock : the bit to set : the address to start counting from
This operation is like clear_bit_unlock, however it is not atomic. It does provide release barrier semantics so it can be used to unlock a bit lock, however it would only be used if no other CPU can modify any bits in the memory until the lock is released (a good example is if the bit lock itself protects access to the other bits in the word).
#define test_and_set_bit_lock | ( | nr, | |
addr | |||
) | test_and_set_bit(nr, addr) |