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.


Removed a lot of the highly specific multicore code from the general core VMM code
[palacios.git] / palacios / include / palacios / vmm_file.h
index bf4a1d0..b523475 100644 (file)
     ({                                                                 \
        extern struct v3_file_hooks * file_hooks;                       \
        ((file_hooks) && (file_hooks)->file_read) ?                     \
-           (file_hooks)->file_read((fd), (start), (buf), (len)) : -1;  \
+           (file_hooks)->file_read((fd), (buf), (len), (start)) : -1;  \
     })
 
 #define V3_FileWrite(fd,start,buf,len)                                 \
     ({                                                                 \
        extern struct v3_file_hooks * file_hooks;                       \
        ((file_hooks) && (file_hooks)->file_write) ?                    \
-           (file_hooks)->file_write((fd), (start), (buf), (len)) : -1; \
+           (file_hooks)->file_write((fd), (buf), (len), (start)) : -1; \
     })
 
 
@@ -75,8 +75,8 @@ struct v3_file_hooks {
     long long (*file_size)(int fd);
 
     // blocking reads and writes
-    long long (*file_read)(int fd,  long long start, void * buffer, long long length);
-    long long (*file_write)(int fd, long long start, void * buffer, long long length);
+    long long (*file_read)(int fd, void * buffer, long long length, long long offset);
+    long long (*file_write)(int fd, void * buffer, long long length, long long offset);
 
 };