函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kthread_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

函数原型:bool kthread_freezable_should_stop(bool *was_frozen)

返回类型:bool

参数:

类型参数名称
bool *was_frozen
141  bool frozen = false
143  might_sleep()
145  如果此条件成立可能性小(为编译器优化)(freezing(当前进程))则frozen等于Refrigerator is place where frozen processes are stored :-).
148  如果was_frozenwas_frozen等于frozen
151  返回:kthread_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().