Changes

Jump to navigation Jump to search
60 bytes added ,  16:48, 21 December 2013
Line 7: Line 7:     
=Libraries=
 
=Libraries=
A CRIU plugin is shared library, which is loaded before dumping or restoring. The CRIU tool looks up callback by their names. A library may provide any set of callbacks.
+
A CRIU plugin is shared library, which is loaded before dumping or restoring.
    
Each library can have cr_plugin_init() and cr_plugin_fini() functions for initializing and finalizing. cr_plugin_init() can return a negative value in an error case.
 
Each library can have cr_plugin_init() and cr_plugin_fini() functions for initializing and finalizing. cr_plugin_init() can return a negative value in an error case.
Line 26: Line 26:     
Each callback gets an unique identificator for each serialized object.
 
Each callback gets an unique identificator for each serialized object.
 +
 +
The CRIU tool looks up callback by their names. A library may provide any set of callbacks. All callback prototypes are defined in ''criu-plugins.h''.
    
=== External unix sockets ===
 
=== External unix sockets ===

Navigation menu