Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ww_mutex.h Create Date:2022-07-28 06:49:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ww_mutex_trylock - tries to acquire the w/w mutex without acquire context*@lock: mutex to lock* Trylocks a mutex without acquire context, so no deadlock detection is* possible. Returns 1 if the mutex has been acquired successfully, 0 otherwise.

Proto:static inline int __must_check ww_mutex_trylock(struct ww_mutex *lock)

Type:int

Parameter:

TypeParameterName
struct ww_mutex *lock
345  Return NOTE: mutex_trylock() follows the spin_trylock() convention,* not the down_trylock() convention!* Returns 1 if the mutex has been acquired successfully, and 0 on contention.
Caller
NameDescribe
test_mutex_work
test_aa