File: cpt.h

package info (click to toggle)
vzctl 3.0.11-13
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 1,164 kB
  • ctags: 1,894
  • sloc: ansic: 14,655; sh: 2,744; makefile: 419
file content (37 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _CPT_H_
#define _CPT_H_
#include "types.h"
#define PROC_CPT	"/proc/cpt"
#define PROC_RST	"/proc/rst"
#define DEF_DUMPDIR	"/var/tmp"

#define CMD_CHKPNT		1
#define CMD_SUSPEND		2
#define CMD_DUMP		3
#define CMD_RESTORE		4
#define CMD_UNDUMP		5

#define CMD_KILL		10
#define CMD_RESUME		11


#define DEF_DUMPFILE    "Dump.%d"

typedef struct {
	char *dumpdir;
	char *dumpfile;
	unsigned int ctx;
	unsigned int cpu_flags;
	int cmd;
	int rst_fd;
} cpt_param;

struct vps_param;
int cpt_cmd(vps_handler *h, envid_t veid, int cmd, cpt_param *param,
	struct vps_param *vps_p);
int vps_chkpnt(vps_handler *h, envid_t veid, struct vps_param *vps_p, int cmd,
	cpt_param *param);
int vps_restore(vps_handler *h, envid_t veid, struct vps_param *vps_p, int cmd,
        cpt_param *param);

#endif