Changes

Jump to navigation Jump to search
81 bytes added ,  23:41, 19 December 2013
moar fixes
Line 7: Line 7:  
To create a library <code>lib/libcriu.so</code>, run <code>make</code> in the main directory.
 
To create a library <code>lib/libcriu.so</code>, run <code>make</code> in the main directory.
   −
== Setup options ==
+
== Preparation ==
    
=== init options ===
 
=== init options ===
Line 60: Line 60:  
</pre>
 
</pre>
   −
== check/dump/restore ==
+
== Operations ==
   −
Use this functions to check/dump/restore:
+
Use the following functions to perform CRIU actions.
<pre>
+
 
int criu_check(void);
+
=== check ===
int criu_dump(void);
+
 
int criu_restore(void);
+
int criu_check(void);
</pre>
+
 
 +
=== dump ===
 +
 
 +
int criu_dump(void);
 +
 
 +
=== restore ===
 +
 
 +
int criu_restore(void);
 +
 
 +
 
 +
=== Return values ==
   −
Here is a table of return values and errno's of this functions:
+
Here is a table of return and errno values of the above functions:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 84: Line 94:  
| >0
 
| >0
 
| undefined
 
| undefined
| Success(criu_restore() only)
+
| Success (<code>criu_restore()</code> only)
    
|-
 
|-
 
| -EBADE
 
| -EBADE
| RPC error(if provided, 0 otherwise)
+
| RPC error (if provided, 0 otherwise)
 
| RPC has returned fail.
 
| RPC has returned fail.
  

Navigation menu