[CRIU] [PATCH 04/14] signalfd: define SFD_RAW, SFD_{SHARED, PER_THREAD}_QUEUE_OFFSET

Andrey Vagin avagin at openvz.org
Thu Jan 17 09:38:28 EST 2013


SFD_RAW - report siginfo in a raw format
SFD_SHARED_QUEUE_OFFSET - read signals from a shared (process wide) queue
SFD_PER_THREAD_QUEUE_OFFSET - read signals from a per-thread queue

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 include/signalfd.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/signalfd.h b/include/signalfd.h
index c5d6978..f6656ae 100644
--- a/include/signalfd.h
+++ b/include/signalfd.h
@@ -9,4 +9,10 @@ extern int dump_signalfd(struct fd_parms *p, int lfd, const int fdinfo);
 extern void show_signalfd(int fd, struct cr_options *o);
 extern int collect_signalfd(void);
 
+#ifndef SFD_RAW
+#define SFD_RAW O_DIRECT
+#define SIGNALFD_SHARED_OFFSET (1LL << 62)
+#define SIGNALFD_PRIVATE_OFFSET 1
+#endif
+
 #endif /* __CR_SIGNALFD_H__ */
-- 
1.7.11.7



More information about the CRIU mailing list