fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / linux / vserver / cvirt_cmd.h
1 #ifndef _VX_CVIRT_CMD_H
2 #define _VX_CVIRT_CMD_H
3
4
5 /* virtual host info name commands */
6
7 #define VCMD_set_vhi_name       VC_CMD(VHOST, 1, 0)
8 #define VCMD_get_vhi_name       VC_CMD(VHOST, 2, 0)
9
10 struct  vcmd_vhi_name_v0 {
11         uint32_t field;
12         char name[65];
13 };
14
15
16 enum vhi_name_field {
17         VHIN_CONTEXT=0,
18         VHIN_SYSNAME,
19         VHIN_NODENAME,
20         VHIN_RELEASE,
21         VHIN_VERSION,
22         VHIN_MACHINE,
23         VHIN_DOMAINNAME,
24 };
25
26
27 #ifdef  __KERNEL__
28
29 #include <linux/compiler.h>
30
31 extern int vc_set_vhi_name(struct vx_info *, void __user *);
32 extern int vc_get_vhi_name(struct vx_info *, void __user *);
33
34 #endif  /* __KERNEL__ */
35
36 #define VCMD_virt_stat          VC_CMD(VSTAT, 3, 0)
37
38 struct  vcmd_virt_stat_v0 {
39         uint64_t offset;
40         uint64_t uptime;
41         uint32_t nr_threads;
42         uint32_t nr_running;
43         uint32_t nr_uninterruptible;
44         uint32_t nr_onhold;
45         uint32_t nr_forks;
46         uint32_t load[3];
47 };
48
49 #ifdef  __KERNEL__
50 extern int vc_virt_stat(struct vx_info *, void __user *);
51
52 #endif  /* __KERNEL__ */
53 #endif  /* _VX_CVIRT_CMD_H */