Changeset 118 for GPL/trunk/alsa-kernel/include
- Timestamp:
- Jun 4, 2007, 3:50:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/compat_22.h
r77 r118 406 406 #endif 407 407 408 #define ATOMIC_INIT(i) { (i) }409 410 /**411 * atomic_dec_and_test - decrement and test412 * @v: pointer of type atomic_t413 *414 * Atomically decrements @v by 1 and415 * returns true if the result is 0, or false for all other416 * cases. Note that the guaranteed417 * useful range of an atomic_t is only 24 bits.418 */419 static inline int atomic_dec_and_test(volatile atomic_t *v)420 {421 atomic_dec(v);422 if (v->counter == 0)423 return 1;424 return 0;425 }426 427 408 /** 428 409 * list_for_each_safe - iterate over a list safe against removal of list entry
Note:
See TracChangeset
for help on using the changeset viewer.