Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (52 sloc) 1.374 kb
c685a07 Initial version
OpenVZ team authored
1 /*
16997fd @kolyshkin SWsoft->Parallels, update copyright year
kolyshkin authored
2 * Copyright (C) 2000-2008, Parallels, Inc. All rights reserved.
c685a07 Initial version
OpenVZ team authored
3 *
7682708 Changed license agreement from QPL to GPL
Igor Sukhih authored
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
c685a07 Initial version
OpenVZ team authored
8 *
7682708 Changed license agreement from QPL to GPL
Igor Sukhih authored
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
c685a07 Initial version
OpenVZ team authored
17 */
18 #ifndef _VZCTL_H_
19 #define _VZCTL_H_
20
5d10b79 @kolyshkin Use enum instead of defines for ACTION_s
kolyshkin authored
21 typedef enum {
22 ACTION_CREATE = 1,
23 ACTION_DESTROY,
24 ACTION_MOUNT,
25 ACTION_UMOUNT,
26 ACTION_START,
27 ACTION_STOP,
28 ACTION_RESTART,
29 ACTION_SET,
30 ACTION_STATUS,
31 ACTION_EXEC,
32 ACTION_EXEC2,
33 ACTION_EXEC3,
34 ACTION_ENTER,
35 ACTION_RUNSCRIPT,
36 ACTION_CUSTOM,
37 ACTION_CHKPNT,
38 ACTION_RESTORE,
39 ACTION_QUOTAON,
40 ACTION_QUOTAOFF,
41 ACTION_QUOTAINIT
42 } act_t;
c685a07 Initial version
OpenVZ team authored
43
44 /* default cpu units values */
5aa2d07 @kolyshkin A bunch of whitespace fixes
kolyshkin authored
45 #define LHTCPUUNITS 250
46 #define UNLCPUUNITS 1000
47 #define HNCPUUNITS 1000
c685a07 Initial version
OpenVZ team authored
48
49 /* setmode flags */
50 enum {
5aa2d07 @kolyshkin A bunch of whitespace fixes
kolyshkin authored
51 SET_NONE = 0,
52 SET_IGNORE,
53 SET_RESTART,
c685a07 Initial version
OpenVZ team authored
54 };
55
56 #endif
Something went wrong with that request. Please try again.