Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\mutex.c Create Date:2022-07-28 09:47:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Associate the ww_mutex @ww with the context @ww_ctx under which we acquired* it.

Proto:static __always_inline void ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx)

Type:void

Parameter:

TypeParameterName
struct ww_mutex *ww
struct ww_acquire_ctx *ww_ctx
342  acquired++
343  ctx = ww_ctx
Caller
NameDescribe
ww_mutex_set_context_fastpathAfter acquiring lock with fastpath, where we do not hold wait_lock, set ctx* and wake up any waiters so they can recheck.
__mutex_lock_commonLock a mutex (possibly interruptible), slowpath: