#include <linux/interrupt.h>
#include <linux/suspend.h>
#include <linux/export.h>
#include <linux/syscalls.h>
#include <linux/freezer.h>
#include <linux/kthread.h>
Go to the source code of this file.
bool __refrigerator |
( |
bool |
check_kthr_stop | ) |
|
freeze_task - send a freeze request to given task
: task to send the request to
If is
freezing, the freeze request is sent either by sending a fake signal (if it's not a kernel thread) or waking it up (if it's a kernel thread).
RETURNS: false, if is
not freezing or already frozen; true, otherwise
Definition at line 109 of file freezer.c.
freezing_slow_path - slow path for testing whether a task needs to be frozen
: task to be tested
This function is called by freezing() if system_freezing_cnt isn't zero and tests whether needs
to enter and stay in frozen state. Can be called under any context. The freezers are responsible for ensuring the target tasks see the updated state.
Definition at line 34 of file freezer.c.
set_freezable - make current freezable
Mark current freezable and enter refrigerator if necessary.
Definition at line 156 of file freezer.c.