[CRIU] [PATCH 06/10] kcmp: Add epoll definitions

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 28 07:05:45 PST 2017


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/include/kcmp.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/criu/include/kcmp.h b/criu/include/kcmp.h
index 76f557bff047..1bd75db70125 100644
--- a/criu/include/kcmp.h
+++ b/criu/include/kcmp.h
@@ -1,6 +1,8 @@
 #ifndef __CR_KCMP_H__
 #define __CR_KCMP_H__
 
+#include <stdint.h>
+
 enum kcmp_type {
 	KCMP_FILE,
 	KCMP_VM,
@@ -9,8 +11,16 @@ enum kcmp_type {
 	KCMP_SIGHAND,
 	KCMP_IO,
 	KCMP_SYSVSEM,
+	KCMP_EPOLL_TFD,
 
 	KCMP_TYPES,
 };
 
+/* Slot for KCMP_EPOLL_TFD */
+typedef struct {
+	uint32_t	efd;	/* epoll file descriptor */
+	uint32_t	tfd;	/* target file number */
+	uint64_t	toff;	/* target offset within same numbered sequence */
+} kcmp_epoll_slot_t;
+
 #endif /* __CR_KCMP_H__ */
-- 
2.7.4



More information about the CRIU mailing list