函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Refrigerator is place where frozen processes are stored :-).

函数原型:bool __refrigerator(bool check_kthr_stop)

返回类型:bool

参数:

类型参数名称
boolcheck_kthr_stop
60  bool was_frozen = false
61  save等于state
63  pr_debug("%s entered refrigerator\n", comm)
65  循环
66  set_current_state(深度睡眠态)
68  spin_lock_irq( & protects freezing and frozen transitions )
69  flags或等于Frozen for system suspend
70  如果非freezing(当前进程)或check_kthr_stopkthread_should_stop - should this kthread return now?* When someone calls kthread_stop() on your kthread, it will be woken* and this will return true. You should then return, and your return* value will be passed through to kthread_stop().flags与等于Frozen for system suspend 的反
73  spin_unlock_irq( & protects freezing and frozen transitions )
75  如果非flags按位与Frozen for system suspend 的值则退出
77  was_frozen = true
78  进程调度
81  pr_debug("%s left refrigerator\n", comm)
88  set_current_state(save)
90  返回:was_frozen
调用者
名称描述
kthread_freezable_should_stopkthread_freezable_should_stop - should this freezable kthread return now?*@was_frozen: optional out parameter, indicates whether %current was frozen* kthread_should_stop() for freezable kthreads, which will enter* refrigerator if necessary