函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Clean up torture module

函数原型:bool torture_cleanup_begin(void)

返回类型:bool

参数:

706  mutex_lock( & fullstop_mutex)
707  如果READ_ONCE(fullstop)恒等于System shutdown with torture running.
708  打印警告信息("Concurrent rmmod and shutdown illegal!\n")
709  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
710  schedule_timeout_uninterruptible(10)
711  返回:true
713  WRITE_ONCE(fullstop, Normal rmmod of torture. )
714  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
715  Shut down the shutdown task. Say what??? Heh! This can happen if* the torture module gets an rmmod before the shutdown time arrives. ;-)
716  Stop the shuffling.
717  Cleanup after the torture_stutter kthread.
718  Clean up after online/offline testing.
719  返回:false
调用者
名称描述
rcu_torture_cleanup
rcu_perf_cleanup
lock_torture_cleanupForward reference.