Linux Kernel
3.7.1
|
#include <linux/interrupt.h>
#include <linux/oom.h>
#include <linux/suspend.h>
#include <linux/module.h>
#include <linux/syscalls.h>
#include <linux/freezer.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/kmod.h>
Go to the source code of this file.
Macros | |
#define | TIMEOUT (20 * HZ) |
Functions | |
int | freeze_processes (void) |
int | freeze_kernel_threads (void) |
void | thaw_processes (void) |
void | thaw_kernel_threads (void) |
freeze_kernel_threads - Make freezable kernel threads go to the refrigerator.
On success, returns 0. On failure, -errno and only the kernel threads are thawed, so as to give a chance to the caller to do additional cleanups (if any) before thawing the userspace tasks. So, it is the responsibility of the caller to thaw the userspace tasks, when the time is right.