函数逻辑报告 | 
Source Code:kernel\rcu\rcutorture.c | 
Create Date:2022-07-27 11:21:57 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:RCU torture fake writer kthread. Repeatedly calls sync, with a random* delay between calls.
函数原型:static int rcu_torture_fakewriter(void *arg)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| void * | arg | 
| 1103 | VERBOSE_TOROUT_STRING("rcu_torture_fakewriter task started") | 
| 1104 | set_user_nice(当前进程, MAX_NICE) | 
| 1106 | 循环 | 
| 1107 | schedule_timeout_uninterruptible(1 + torture_random( & rand) % 10) | 
| 1108 | 0x10c7 is 2**32 / 1000000 (rounded up) (torture_random( & rand) & 0x3ff) | 
| 1109 | 如果cb_barrier不等于NULL且torture_random( & rand)取模nfakewriters乘8恒等于0则 | 
| 1111 | cb_barrier() | 
| 1118 | sync() | 
| 1119 | 否则如果exp_sync则 | 
| 1120 | exp_sync() | 
| 1126 | 返回:0 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |