Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/lockdep.h
Context not available. | |||||
#ifndef _LINUX_LOCKDEP_H_ | #ifndef _LINUX_LOCKDEP_H_ | ||||
#define _LINUX_LOCKDEP_H_ | #define _LINUX_LOCKDEP_H_ | ||||
/* | |||||
* In Linux lockdep_* functions are NOOP if CONFIG_LOCKDEP is not enabled. | |||||
* Since we do not fully support LOCKDEP yet, we do not enable CONFIG_LOCKDEP. | |||||
* However, for the functions that have implementation below, | |||||
* #if IS_ENABLED(CONFIG_LOCKDEP) found in Linux code can be overridden to | |||||
* provide some lock assertion. | |||||
*/ | |||||
struct lock_class_key { | struct lock_class_key { | ||||
}; | }; | ||||
hselaskyUnsubmitted Done Inline ActionsNOTE: The meaning of lock_held() in Linux might be different from the one in FreeBSD! Please carefully verify if this means:
hselasky: NOTE: The meaning of lock_held() in Linux might be different from the one in FreeBSD! Please… | |||||
Not Done Inline ActionsNot needed since we don't enable CONFIG_LOCKDEP. johalun0_gmail.com: Not needed since we don't enable CONFIG_LOCKDEP. | |||||
Done Inline ActionsTAB after #define hselasky: TAB after #define | |||||
Context not available. | |||||
#define lockdep_is_held(m) (sx_xholder(&(m)->sx) == curthread) | #define lockdep_is_held(m) (sx_xholder(&(m)->sx) == curthread) | ||||
#define might_lock(m) do { } while (0) | #define might_lock(m) do { } while (0) | ||||
#define might_lock_read(lock) do { } while (0) | |||||
#define lock_acquire(l, s, t, r, c, n, i) do { } while (0) | |||||
#define lock_release(l, n, i) do { } while (0) | |||||
#define lock_acquire_shared_recursive(l, s, t, n, i) \ | |||||
lock_acquire(l, s, t, 2, 1, n, i) | |||||
#endif /* _LINUX_LOCKDEP_H_ */ | #endif /* _LINUX_LOCKDEP_H_ */ | ||||
Context not available. |