use ENSC_FIX_IOCTL() to fix dietlibc's ioctl() return values
[util-vserver.git] / util-vserver / lib / virtual.h
index f83d18f..2381db7 100644 (file)
@@ -54,6 +54,8 @@
 #define VC_CAT_SCHED           14
 #define VC_CAT_INODE           38
 
+#define        VC_CAT_VINFO            46
+
 #define VC_CAT_RLIMIT          60
 
 #define VC_CAT_SYSTEST         61
@@ -151,7 +153,6 @@ struct  vcmd_tbf_sched_v1 {
 #define VCMD_set_iattr         VC_CMD(INODE, 2, 0)
 
 struct  vcmd_ctx_iattr_v0 {
-       uint64_t dev;
        uint64_t ino;
        uint32_t xid;
        uint32_t flags;
@@ -169,5 +170,19 @@ struct  vcmd_ctx_iattr_v0 {
 
 
 
+/* vinfo commands */
+
+#define        VCMD_task_xid           VC_CMD(VINFO, 1, 0)
+#define        VCMD_task_nid           VC_CMD(VINFO, 2, 0)
+
+#define        VCMD_vx_info            VC_CMD(VINFO, 5, 0)
+#define        VCMD_nx_info            VC_CMD(VINFO, 6, 0)
+
+struct  vcmd_vx_info_v0 {
+    uint32_t xid;
+    uint32_t initpid;
+    /* more to come */
+};
+
 
 #endif /* _LINUX_VIRTUAL_H */