From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753539AbbATJ7y (ORCPT ); Tue, 20 Jan 2015 04:59:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52611 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143AbbATJ7u (ORCPT ); Tue, 20 Jan 2015 04:59:50 -0500 From: Fam Zheng To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Alexander Viro , Andrew Morton , Kees Cook , Andy Lutomirski , David Herrmann , Alexei Starovoitov , Miklos Szeredi , David Drysdale , Oleg Nesterov , "David S. Miller" , Vivek Goyal , Mike Frysinger , "Theodore Ts'o" , Heiko Carstens , Rasmus Villemoes , Rashika Kheria , Hugh Dickins , Mathieu Desnoyers , Fam Zheng , Peter Zijlstra , linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, Josh Triplett , "Michael Kerrisk (man-pages)" , Paolo Bonzini Subject: [PATCH RFC 3/6] epoll: Add definition for epoll_mod_wait structures Date: Tue, 20 Jan 2015 17:57:55 +0800 Message-Id: <1421747878-30744-4-git-send-email-famz@redhat.com> In-Reply-To: <1421747878-30744-1-git-send-email-famz@redhat.com> References: <1421747878-30744-1-git-send-email-famz@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two structs involved in the coming syscall is defined. Flags in epoll_mod_cmd are reserved, which makes better word alignment and may allow future extension. Signed-off-by: Fam Zheng --- include/uapi/linux/eventpoll.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index bc81fb2..e32a804 100644 --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -18,6 +18,8 @@ #include #include +#include + /* Flags for epoll_create1. */ #define EPOLL_CLOEXEC O_CLOEXEC @@ -61,6 +63,24 @@ struct epoll_event { __u64 data; } EPOLL_PACKED; +struct epoll_mod_cmd { + int flags; + int op; + int fd; + __u32 events; + __u64 data; + int error; +} EPOLL_PACKED; + +struct epoll_wait_spec { + int maxevents; + struct epoll_event *events; + int clockid; + struct timespec timeout; + sigset_t *sigmask; + size_t sigsetsize; +} EPOLL_PACKED; + #ifdef CONFIG_PM_SLEEP static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) { -- 1.9.3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fam Zheng Subject: [PATCH RFC 3/6] epoll: Add definition for epoll_mod_wait structures Date: Tue, 20 Jan 2015 17:57:55 +0800 Message-ID: <1421747878-30744-4-git-send-email-famz@redhat.com> References: <1421747878-30744-1-git-send-email-famz@redhat.com> Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Alexander Viro , Andrew Morton , Kees Cook , Andy Lutomirski , David Herrmann , Alexei Starovoitov , Miklos Szeredi , David Drysdale , Oleg Nesterov , "David S. Miller" , Vivek Goyal , Mike Frysinger , "Theodore Ts'o" , Heiko Carstens , Rasmus Villemoes , Rashika Kheria , Hugh Dickins , Mathieu Desnoyers , Fam Zheng , Peter Zijlstra In-Reply-To: <1421747878-30744-1-git-send-email-famz@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Two structs involved in the coming syscall is defined. Flags in epoll_mod_cmd are reserved, which makes better word alignment and may allow future extension. Signed-off-by: Fam Zheng --- include/uapi/linux/eventpoll.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index bc81fb2..e32a804 100644 --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -18,6 +18,8 @@ #include #include +#include + /* Flags for epoll_create1. */ #define EPOLL_CLOEXEC O_CLOEXEC @@ -61,6 +63,24 @@ struct epoll_event { __u64 data; } EPOLL_PACKED; +struct epoll_mod_cmd { + int flags; + int op; + int fd; + __u32 events; + __u64 data; + int error; +} EPOLL_PACKED; + +struct epoll_wait_spec { + int maxevents; + struct epoll_event *events; + int clockid; + struct timespec timeout; + sigset_t *sigmask; + size_t sigsetsize; +} EPOLL_PACKED; + #ifdef CONFIG_PM_SLEEP static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) { -- 1.9.3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fam Zheng Subject: [PATCH RFC 3/6] epoll: Add definition for epoll_mod_wait structures Date: Tue, 20 Jan 2015 17:57:55 +0800 Message-ID: <1421747878-30744-4-git-send-email-famz@redhat.com> References: <1421747878-30744-1-git-send-email-famz@redhat.com> Return-path: In-Reply-To: <1421747878-30744-1-git-send-email-famz@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Alexander Viro , Andrew Morton , Kees Cook , Andy Lutomirski , David Herrmann , Alexei Starovoitov , Miklos Szeredi , David Drysdale , Oleg Nesterov , "David S. Miller" , Vivek Goyal , Mike Frysinger , Theodore Ts'o , Heiko Carstens , Rasmus Villemoes , Rashika Kheria , Hugh Dickins , Mathieu Desnoyers , Fam Zheng , Peter Zijlstra List-Id: linux-api@vger.kernel.org Two structs involved in the coming syscall is defined. Flags in epoll_mod_cmd are reserved, which makes better word alignment and may allow future extension. Signed-off-by: Fam Zheng --- include/uapi/linux/eventpoll.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index bc81fb2..e32a804 100644 --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -18,6 +18,8 @@ #include #include +#include + /* Flags for epoll_create1. */ #define EPOLL_CLOEXEC O_CLOEXEC @@ -61,6 +63,24 @@ struct epoll_event { __u64 data; } EPOLL_PACKED; +struct epoll_mod_cmd { + int flags; + int op; + int fd; + __u32 events; + __u64 data; + int error; +} EPOLL_PACKED; + +struct epoll_wait_spec { + int maxevents; + struct epoll_event *events; + int clockid; + struct timespec timeout; + sigset_t *sigmask; + size_t sigsetsize; +} EPOLL_PACKED; + #ifdef CONFIG_PM_SLEEP static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) { -- 1.9.3