Add qlmpi and swap to mckernel (This is rebase commit for merging to development)

This commit is contained in:
Yutaka Ishikawa
2017-07-23 21:19:15 +09:00
committed by Ken Sato
parent 74f15783d2
commit 236a072311
61 changed files with 6638 additions and 24 deletions

View File

@@ -0,0 +1,34 @@
/*
* \file swapfmt.h
* License details are found in the file LICENSE.
* \brief
* swapped out file format
* \author Yutaka Ishikawa <ishikawa@riken.jp>
*/
#define MCKERNEL_SWAP "McKernel swap"
#define MCKERNEL_SWAP_VERSION "@MCKERNEL_VERSION@"
#define SWAP_HLEN 16
struct swap_header {
char magic[SWAP_HLEN]; /* MCKernel swap */
char version[SWAP_HLEN]; /* same as McKernel version */
unsigned int count_sarea; /* count of swaped area info */
unsigned int count_marea; /* count of mlocked area info */
};
struct swap_areainfo {
unsigned long start; /* virtual address */
unsigned long end; /* virtual address */
unsigned long pos; /* swap: file position in this file
* mlock: physical address */
unsigned long flag; /* flag in vm_range */
};
/*
*
* +--------------------
* | swap_header
* +--------------------
* | swap_areainfo[...]
* | swap_ainfo[...]
*/