[CRIU] [PATCH v5 04/19] kcmp: Add epoll definitions

Cyrill Gorcunov gorcunov at gmail.com
Wed Jul 4 18:51:32 MSK 2018


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

diff --git a/criu/include/kcmp.h b/criu/include/kcmp.h
index 76f557bff047..f1c898d71260 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 */
+	uint32_t	toff;	/* target offset within same numbered sequence */
+} kcmp_epoll_slot_t;
+
 #endif /* __CR_KCMP_H__ */
-- 
2.14.4



More information about the CRIU mailing list