Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
C API
(edit)
Revision as of 23:41, 19 December 2013
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.
Kir
Bureaucrats
,
Administrators
1,067
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Request account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help
Tools
Special pages
Printable version
News
Twitter
YouTube
External resources
Github / source code
Issues / bugs
Mr. Jenkins
Open Hub
OpenVZ