Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:40:58
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mutex_lock_double

Proto:static void mutex_lock_double(struct mutex *a, struct mutex *b)

Type:void

Parameter:

TypeParameterName
struct mutex *a
struct mutex *b
11077  If b < a Then swap - swap values of @a and @b*@a: first value*@b: second value(a, b)
11080  mutex_lock(a)
11081  mutex_lock_nested(b, For trivial one-depth nesting of a lock-class, the following* global define can be used. (Subsystems with multiple levels* of nesting should define their own lock-nesting subclasses.))
Caller
NameDescribe
__perf_event_ctx_lock_doubleVariation on perf_event_ctx_lock_nested(), except we take two context* mutexes.
perf_pmu_migrate_context