fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / linux / vserver / cvirt_cmd.h
index 6720469..8cb1641 100644 (file)
@@ -28,8 +28,26 @@ enum vhi_name_field {
 
 #include <linux/compiler.h>
 
-extern int vc_set_vhi_name(uint32_t, void __user *);
-extern int vc_get_vhi_name(uint32_t, void __user *);
+extern int vc_set_vhi_name(struct vx_info *, void __user *);
+extern int vc_get_vhi_name(struct vx_info *, void __user *);
+
+#endif /* __KERNEL__ */
+
+#define VCMD_virt_stat         VC_CMD(VSTAT, 3, 0)
+
+struct vcmd_virt_stat_v0 {
+       uint64_t offset;
+       uint64_t uptime;
+       uint32_t nr_threads;
+       uint32_t nr_running;
+       uint32_t nr_uninterruptible;
+       uint32_t nr_onhold;
+       uint32_t nr_forks;
+       uint32_t load[3];
+};
+
+#ifdef __KERNEL__
+extern int vc_virt_stat(struct vx_info *, void __user *);
 
 #endif /* __KERNEL__ */
 #endif /* _VX_CVIRT_CMD_H */