Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-28 09:30:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:bool kthread_freezable_should_stop(bool *was_frozen)

Type:bool

Parameter:

TypeParameterName
bool *was_frozen
141  bool frozen = false
143  might_sleep()
145  If Value for the false possibility is greater at compile time(freezing(current process)) Then frozen = Refrigerator is place where frozen processes are stored :-).
148  If was_frozen Then was_frozen = frozen
151  Return 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().