Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc07e721 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Jonathan Corbet
Browse files

Spell out behavior of atomic_dec_and_lock() in kerneldoc



A little more detail here wouldn't hurt.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent b40b5162
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -341,6 +341,9 @@ static inline void double_spin_unlock(spinlock_t *l1, spinlock_t *l2,
 * atomic_dec_and_lock - lock on reaching reference count zero
 * atomic_dec_and_lock - lock on reaching reference count zero
 * @atomic: the atomic counter
 * @atomic: the atomic counter
 * @lock: the spinlock in question
 * @lock: the spinlock in question
 *
 * Decrements @atomic by 1.  If the result is 0, returns true and locks
 * @lock.  Returns false for all other cases.
 */
 */
extern int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock);
extern int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock);
#define atomic_dec_and_lock(atomic, lock) \
#define atomic_dec_and_lock(atomic, lock) \