[CRIU] [PATCH 5/8] x86: Add io syscalls

Pavel Emelyanov xemul at parallels.com
Fri Oct 10 12:02:26 PDT 2014


TODO: add arm ones

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 arch/x86/syscall-x86-64.def | 2 ++
 include/syscall-types.h |  4 ++++
 2 file changed, 6 insertions(+)

diff --git a/arch/x86/syscall-x86-64.def b/arch/x86/syscall-x86-64.def
index 5d31337..244cd24 100644
--- a/arch/x86/syscall-x86-64.def
+++ b/arch/x86/syscall-x86-64.def
@@ -84,6 +84,8 @@ __NR_sys_timer_getoverrun	225		sys_timer_getoverrun	(int timer_id)
 __NR_sys_timer_delete	226		sys_timer_delete	(timer_t timer_id)
 __NR_clock_gettime	228		sys_clock_gettime	(const clockid_t which_clock, const struct timespec *tp)
 __NR_exit_group		231		sys_exit_group		(int error_code)
+__NR_io_setup		206		sys_io_setup		(unsigned nr_events, aio_context_t *ctx)
+__NR_io_getevents	208		sys_io_getevents	(aio_context_t ctx, long min_nr, long nr, struct io_event *evs, struct timespec *tmo)
 __NR_set_robust_list	273		sys_set_robust_list	(struct robust_list_head *head, size_t len)
 __NR_get_robust_list	274		sys_get_robust_list	(int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
 __NR_vmsplice		278		sys_vmsplice		(int fd, const struct iovec *iov, unsigned long nr_segs, unsigned int flags)
diff --git a/include/syscall-types.h b/include/syscall-types.h
index bab3dba..8ee079b 100644
--- a/include/syscall-types.h
+++ b/include/syscall-types.h
@@ -30,6 +30,10 @@ struct msghdr;
 struct rusage;
 struct file_handle;
 struct robust_list_head;
+struct io_event;
+struct timespec;
+
+typedef unsigned long aio_context_t;
 
 struct itimerspec;
 
-- 
1.8.4.2




More information about the CRIU mailing list