函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Forward reference.

函数原型:static void lock_torture_cleanup(void)

返回类型:void

参数:

789  如果Clean up torture module则返回
798  如果非 writer statistics 且非 reader statistics 则转到:end
801  如果writer_tasks
802 i小于nrealwriters_stress循环torture_stop_kthread(Lock torture writer kthread. Repeatedly acquires and releases* the lock, checking for duplicate acquisitions., writer_tasks[i])
805  释放内存
806  writer_tasks = NULL
809  如果reader_tasks
810 i小于nrealreaders_stress循环torture_stop_kthread(Lock torture reader kthread. Repeatedly acquires and releases* the reader lock., reader_tasks[i])
813  释放内存
814  reader_tasks = NULL
817  torture_stop_kthread(Periodically prints torture statistics, if periodic statistics printing* was specified via the stat_interval module parameter.* No need to worry about fullstop here, since this one doesn't reference* volatile state or register callbacks., stats_task)
818  Print torture statistics
820  如果atomic_read( & n_lock_torture_errors)则lock_torture_print_module_parms(cur_ops, "End of test: FAILURE")
823  否则如果torture_onoff_failures()则lock_torture_print_module_parms(cur_ops, "End of test: LOCK_HOTPLUG")
826  否则lock_torture_print_module_parms(cur_ops, "End of test: SUCCESS")
830  释放内存
831  writer statistics = NULL
832  释放内存
833  reader statistics = NULL
835  end :
836  torture_cleanup_end()
调用者
名称描述
lock_torture_init