]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Added frsh_vres.h
authorMartin Molnar <molnar@sum.(none)>
Wed, 9 Jul 2008 08:42:36 +0000 (10:42 +0200)
committerMartin Molnar <molnar@sum.(none)>
Wed, 9 Jul 2008 08:42:36 +0000 (10:42 +0200)
frsh/frsh_vres.h [new file with mode: 0644]

diff --git a/frsh/frsh_vres.h b/frsh/frsh_vres.h
new file mode 100644 (file)
index 0000000..c9ecbe4
--- /dev/null
@@ -0,0 +1,26 @@
+/**
+ * \file frsh_vres.h
+ *
+ * This file defines FRESCOR virtual resource.
+ *
+ * IMPORTANT: OS must support virtual resources within lightweight 
+ * virtualization. Like in Aquosa, call qres_create_server creates vres 
+ * in kernel and return its ID (better called descriptor).
+ * 
+ * Therefore VRES definition (structure, functionality) does NOT belong to frsh
+ * - it is contract(NOT vres) based framework. However, for resources that are 
+ * not light-virtualized in kernel we must define FRESCOR vres. That vres lies 
+ * in user space.
+ *
+ */
+
+/* FRSH descriptor type */
+typedef unsigned int frsh_vres_d_t;
+
+typedef struct frsh_vres_ops{
+               write;
+               read;
+               get_budget;     
+       
+} frsh_vres_t; 
+