Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Actual trylock that will work on any unlocked state.

Proto:static inline bool __mutex_trylock(struct mutex *lock)

Type:bool

Parameter:

TypeParameterName
struct mutex *lock
152  Return Not Trylock variant that retuns the owning task on failure.
Caller
NameDescribe
__mutex_lock_commonLock a mutex (possibly interruptible), slowpath:
mutex_trylockmutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically