From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fam Zheng Subject: Re: [PATCH RFC v3 0/7] epoll: Introduce new syscalls, epoll_ctl_batch and epoll_pwait1 Date: Mon, 16 Feb 2015 09:02:24 +0800 Message-ID: <20150216010224.GA32421@ad.nay.redhat.com> References: <1423818243-15410-1-git-send-email-famz@redhat.com> <20150215150011.0340686c@lwn.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20150215150011.0340686c-T1hC0tSOHrs@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jonathan Corbet Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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 , Peter Zijlstra List-Id: linux-api@vger.kernel.org On Sun, 02/15 15:00, Jonathan Corbet wrote: > On Fri, 13 Feb 2015 17:03:56 +0800 > Fam Zheng wrote: > > > SYNOPSIS > > > > #include > > > > int epoll_pwait1(int epfd, int flags, > > struct epoll_event *events, > > int maxevents, > > struct epoll_wait_params *params); > > Quick, possibly dumb question: might it make sense to also pass in > sizeof(struct epoll_wait_params)? That way, when somebody wants to add > another parameter in the future, the kernel can tell which version is in > use and they won't have to do an epoll_pwait2()? > Flags can be used for that, if the change is not radically different. Fam