[v4,04/13] kcmp: Add epoll definitions

Submitted by Cyrill Gorcunov on July 2, 2018, 8:13 p.m.

Details

Message ID 20180702201333.3087-5-gorcunov@gmail.com
State New
Series "epoll: Add support for duped targets"
Headers show

Commit Message

Cyrill Gorcunov July 2, 2018, 8:13 p.m.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/include/kcmp.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch hide | download patch | download mbox

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__ */