函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:torture_spin_lock_write_delay

函数原型:static void torture_spin_lock_write_delay(struct torture_random_state *trsp)

返回类型:void

参数:

类型参数名称
struct torture_random_state *trsp
153  shortdelay_us等于2
154  longdelay_ms等于100
159  如果非torture_random(trsp)与nrealwriters_stress乘2000乘longdelay_ms的模则mdelay(longdelay_ms)
162  如果非torture_random(trsp)与nrealwriters_stress乘2乘shortdelay_us的模则0x10c7 is 2**32 / 1000000 (rounded up) (shortdelay_us)
165  如果非torture_random(trsp)与nrealwriters_stress乘20000的模则