Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ww_test_normal

Proto:static void ww_test_normal(void)

Type:void

Parameter:Nothing

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  If Not ret Then mutex_unlock( & base)
1365  Else WARN_ON(1)
1367  WARN_ON(ctx != (void * )~0UL)
1370  ctx = ~0UL
1371  ret = mutex_lock_killable( & base)
1372  If Not ret Then mutex_unlock( & base)
1374  Else 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  If ret Then mutex_unlock( & base)
1384  Else 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)