函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Detect and respond to a system shutdown.

函数原型:static int torture_shutdown_notify(struct notifier_block *unused1, unsigned long unused2, void *unused3)

返回类型:int

参数:

类型参数名称
struct notifier_block *unused1
unsigned longunused2
void *unused3
534  mutex_lock( & fullstop_mutex)
535  如果READ_ONCE(fullstop)恒等于Normal operation.
536  VERBOSE_TOROUT_STRING("Unscheduled system shutdown detected")
537  WRITE_ONCE(fullstop, System shutdown with torture running. )
538  否则
539  打印警告信息("Concurrent rmmod and shutdown illegal!\n")
541  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.
542  返回:Don't care