|
cppthread 1.1.16
C++ Thread Library
|
Implementation of the deswappify function. More...
#include "cppthread/thread.h"#include <snapdev/glob_to_list.h>#include <snapdev/hexadecimal_string.h>#include <fstream>#include <sstream>#include <snapdev/poison.h>
Go to the source code of this file.
Functions | |
| int | cppthread::deswappify (pid_t pid) |
| Go through the swapped out sections of a process and deswappify them. | |
It is possible to ask the kernel to reload part of the swapped out processes. This is done by loading that section of memory (with a simple read() call).
This is based on a perl script found on github:
https://gist.github.com/WGH-/91260f6d65db88be2c847053c49be5ae
Definition in file deswappify.cpp.
| int cppthread::deswappify | ( | pid_t | pid | ) |
This function reads the memory map of a process and searches for sections of memory that were swapped out and read them back in memory.
| [in] | pid | The process identifier. |
Definition at line 83 of file deswappify.cpp.
References cppthread::deswappify(), and cppthread::end().
Referenced by cppthread::deswappify().


This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.