Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
process.c File Reference
#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.


#define TIMEOUT   (20 * HZ)


int freeze_processes (void)
int freeze_kernel_threads (void)
void thaw_processes (void)
void thaw_kernel_threads (void)

Macro Definition Documentation

#define TIMEOUT   (20 * HZ)

Definition at line 24 of file process.c.

Function Documentation

int freeze_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.

Definition at line 157 of file process.c.

int freeze_processes ( void  )

freeze_processes - Signal user space processes to enter the refrigerator.

On success, returns 0. On failure, -errno and system is fully thawed.

Definition at line 122 of file process.c.

void thaw_kernel_threads ( void  )

Definition at line 202 of file process.c.

void thaw_processes ( void  )

Definition at line 175 of file process.c.