637a0d88ca8c6e1d558536014840f3fdc5c34fa1
[linux-2.6.git] / include / linux / vserver / context_cmd.h
1 #ifndef _VX_CONTEXT_CMD_H
2 #define _VX_CONTEXT_CMD_H
3
4
5 /* vinfo commands */
6
7 #define VCMD_task_xid           VC_CMD(VINFO, 1, 0)
8
9 #ifdef  __KERNEL__
10 extern int vc_task_xid(uint32_t, void __user *);
11
12 #endif  /* __KERNEL__ */
13
14 #define VCMD_vx_info            VC_CMD(VINFO, 5, 0)
15
16 struct  vcmd_vx_info_v0 {
17         uint32_t xid;
18         uint32_t initpid;
19         /* more to come */
20 };
21
22 #ifdef  __KERNEL__
23 extern int vc_vx_info(uint32_t, void __user *);
24
25 #endif  /* __KERNEL__ */
26
27
28 /* context commands */
29
30 #define VCMD_ctx_create         VC_CMD(VPROC, 1, 0)
31 #define VCMD_ctx_migrate        VC_CMD(PROCMIG, 1, 0)
32
33 #ifdef  __KERNEL__
34 extern int vc_ctx_create(uint32_t, void __user *);
35 extern int vc_ctx_migrate(uint32_t, void __user *);
36
37 #endif  /* __KERNEL__ */
38
39
40 /* flag commands */
41
42 #define VCMD_get_cflags         VC_CMD(FLAGS, 1, 0)
43 #define VCMD_set_cflags         VC_CMD(FLAGS, 2, 0)
44
45 struct  vcmd_ctx_flags_v0 {
46         uint64_t flagword;
47         uint64_t mask;
48 };
49
50 #ifdef  __KERNEL__
51 extern int vc_get_cflags(uint32_t, void __user *);
52 extern int vc_set_cflags(uint32_t, void __user *);
53
54 #endif  /* __KERNEL__ */
55
56
57 /* context caps commands */
58
59 #define VCMD_get_ccaps          VC_CMD(FLAGS, 3, 0)
60 #define VCMD_set_ccaps          VC_CMD(FLAGS, 4, 0)
61
62 struct  vcmd_ctx_caps_v0 {
63         uint64_t bcaps;
64         uint64_t ccaps;
65         uint64_t cmask;
66 };
67
68 #ifdef  __KERNEL__
69 extern int vc_get_ccaps(uint32_t, void __user *);
70 extern int vc_set_ccaps(uint32_t, void __user *);
71
72 #endif  /* __KERNEL__ */
73 #endif  /* _VX_CONTEXT_CMD_H */