函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:torture_rwlock_read_delay

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

返回类型:void

参数:

类型参数名称
struct torture_random_state *trsp
248  shortdelay_us等于10
249  longdelay_ms等于100
254  如果非torture_random(trsp)与nrealreaders_stress乘2000乘longdelay_ms的模则mdelay(longdelay_ms)
257  否则0x10c7 is 2**32 / 1000000 (rounded up) (shortdelay_us)