1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 3 * RT-Mutexes: blocking mutual exclusion locks 4 * 5 * started by Ingo Molnar and Thomas Gleixner: 6 * 7 * Copyright (C) 2004-2006 Red Hat, Inc., Ing 8 * Copyright (C) 2006, Timesys Corp., Thomas 9 * 10 * This file contains macros used solely by rt 11 */ 12 13 extern void debug_rt_mutex_init_waiter(struct 14 extern void debug_rt_mutex_free_waiter(struct 15 extern void debug_rt_mutex_init(struct rt_mute 16 extern void debug_rt_mutex_lock(struct rt_mute 17 extern void debug_rt_mutex_unlock(struct rt_mu 18 extern void debug_rt_mutex_proxy_lock(struct r 19 struct t 20 extern void debug_rt_mutex_proxy_unlock(struct 21 extern void debug_rt_mutex_deadlock(enum rtmut 22 struct rt_ 23 struct rt_ 24 extern void debug_rt_mutex_print_deadlock(stru 25 # define debug_rt_mutex_reset_waiter(w) 26 do { (w)->deadlock_lock = NULL; } whil 27 28 static inline bool debug_rt_mutex_detect_deadl 29 30 { 31 return (waiter != NULL); 32 } 33 34 static inline void rt_mutex_print_deadlock(str 35 { 36 debug_rt_mutex_print_deadlock(w); 37 } 38
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.