Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Implemntation of newer keyed stream interface on linux, includes new "textfile" ...
[palacios.git] / linux_module / iface-keyed-stream-user.h
index 84fd844..85ab0e6 100644 (file)
@@ -35,6 +35,10 @@ struct palacios_user_keyed_stream_url {
 // This structure is used for both requests (kernel->user)
 // and responses (user->kernel)
 //
+// for a readkey request, the buf contains the tag
+// for a readkey response, the buf contains the data
+// for a writekey request, the buf contains the data + key
+// for a writekey request, the buf contains nothing
 struct palacios_user_keyed_stream_op {
 
     uint64_t len; // total structure length (all)
@@ -48,13 +52,17 @@ struct palacios_user_keyed_stream_op {
 #define PALACIOS_KSTREAM_READ_KEY  6
 
     sint64_t xfer;      // total bytes read or written (request/response)
+                        // 
 
     void    *user_key;  // user tag for an open key (response)
 
     uint64_t buf_len;   // buffer len
-    char buf[0];        // expanded as needed (key or valye)
+    uint64_t data_off;  // offset of data within the buffer
+                        // 0..buffer_len-1 is tag
+                        // rest is data
+    char buf[0];        // expanded as needed (key or value)
 
-    // The buffer contains the key or the value
+    // The buffer contains the key or the value 
 };