Changes

Jump to navigation Jump to search
64 bytes added ,  18:55, 21 September 2013
no edit summary
Line 4: Line 4:  
Well described here: [[Self_dump]].
 
Well described here: [[Self_dump]].
   −
== CRIU request ==
+
== Protobuf messages ==
criu_req is used to wrap requests to provide compatibility with an older versions of rpc.
+
criu_req/criu_resp -- wrappers for requests/responses. They are to be used for transferring messages. It is needed to provide compatibility with an older versions of rpc. Field type in them _must_ be set accordingly to type of request/response that is stored. Types of request/response are defined in enum criu_req_type.
Any request must be wrapped into criu_req to send to criu.
      +
=== criu_req ===
 
<pre>
 
<pre>
 
message criu_req {
 
message criu_req {
Line 16: Line 16:  
</pre>
 
</pre>
    +
=== criu_req_type ===
 
There is only 1 request/response type for now.
 
There is only 1 request/response type for now.
 
<pre>enum criu_req_type {
 
<pre>enum criu_req_type {
Line 22: Line 23:  
}
 
}
 
</pre>
 
</pre>
=== CRIU dump request ===
+
=== criu_dump_req ===
 
criu_dump_req is used to store dump options.
 
criu_dump_req is used to store dump options.
 
<pre>message criu_dump_req {
 
<pre>message criu_dump_req {
Line 46: Line 47:  
For other options description, please run "criu -h".
 
For other options description, please run "criu -h".
   −
== CRIU response ==
+
=== criu_resp ===
criu_resp is a wrapper for responses. It consists of success bool field, response type field and response, that depends on sent request type.
   
<pre>message criu_resp {
 
<pre>message criu_resp {
 
required criu_req_type type = 1;
 
required criu_req_type type = 1;
Line 55: Line 55:  
}
 
}
 
</pre>
 
</pre>
=== CRIU dump response ===
+
=== criu_dump_resp ===
 
criu_dump_resp is used to store response from CRIU.
 
criu_dump_resp is used to store response from CRIU.
 
<pre>
 
<pre>
85

edits

Navigation menu