root/kernel/locking/mutex-debug.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 /*
   3  * Mutexes: blocking mutual exclusion locks
   4  *
   5  * started by Ingo Molnar:
   6  *
   7  *  Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
   8  *
   9  * This file contains mutex debugging related internal declarations,
  10  * prototypes and inline functions, for the CONFIG_DEBUG_MUTEXES case.
  11  * More details are in kernel/mutex-debug.c.
  12  */
  13 
  14 /*
  15  * This must be called with lock->wait_lock held.
  16  */
  17 extern void debug_mutex_lock_common(struct mutex *lock,
  18                                     struct mutex_waiter *waiter);
  19 extern void debug_mutex_wake_waiter(struct mutex *lock,
  20                                     struct mutex_waiter *waiter);
  21 extern void debug_mutex_free_waiter(struct mutex_waiter *waiter);
  22 extern void debug_mutex_add_waiter(struct mutex *lock,
  23                                    struct mutex_waiter *waiter,
  24                                    struct task_struct *task);
  25 extern void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter,
  26                                 struct task_struct *task);
  27 extern void debug_mutex_unlock(struct mutex *lock);
  28 extern void debug_mutex_init(struct mutex *lock, const char *name,
  29                              struct lock_class_key *key);

/* [<][>][^][v][top][bottom][index][help] */