函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\locking-selftest.c Create Date:2022-07-27 07:49:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ww_test_normal

函数原型:static void ww_test_normal(void)

返回类型:void

参数:

1346  WWAI( & t)
1355  ctx等于0UL的反
1356  mutex_lock( & base)
1357  mutex_unlock( & base)
1358  WARN_ON(ctx != (void * )~0UL)
1361  ctx等于0UL的反
1362  ret等于mutex_lock_interruptible( & base)
1363  如果非retmutex_unlock( & base)
1365  否则WARN_ON(1)
1367  WARN_ON(ctx != (void * )~0UL)
1370  ctx等于0UL的反
1371  ret等于mutex_lock_killable( & base)
1372  如果非retmutex_unlock( & base)
1374  否则WARN_ON(1)
1376  WARN_ON(ctx != (void * )~0UL)
1379  ctx等于0UL的反
1380  ret等于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.
1381  WARN_ON(!ret)
1382  如果retmutex_unlock( & base)
1384  否则WARN_ON(1)
1386  WARN_ON(ctx != (void * )~0UL)
1389  ctx等于0UL的反
1390  mutex_lock( & base)
1391  ret等于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.
1392  WARN_ON(ret)
1393  mutex_unlock( & base)
1394  WARN_ON(ctx != (void * )~0UL)
1397  ctx等于0UL的反
1398  mutex_lock_nest_lock( & base, & t)
1399  mutex_unlock( & base)
1400  WARN_ON(ctx != (void * )~0UL)