From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH RFC 5/6] epoll: Add implementation for epoll_mod_wait Date: Wed, 21 Jan 2015 11:34:38 +0100 Message-ID: <54BF80BE.3070707@redhat.com> References: <1421747878-30744-1-git-send-email-famz@redhat.com> <1421747878-30744-6-git-send-email-famz@redhat.com> <54BE4F1D.7090807@gmail.com> <20150121045903.GA2858@fam-t430.nay.redhat.com> <54BF5ACE.6030206@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, 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 , Peter Zijlstra , Fam Zheng Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45694 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbbAUKfr (ORCPT ); Wed, 21 Jan 2015 05:35:47 -0500 In-Reply-To: <54BF5ACE.6030206@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 21/01/2015 08:52, Michael Kerrisk (man-pages) wrote: >> > The problem is that there is no room for flags field in epoll_pwait1, which is >> > asked for, in previous discussion thread [1]. > Ahh yes, I certainly should not have forgotten that. But that's easily solved. > Do as for pselect6(): > > strcut sigargs { > const sigset_t *ss; > size_t ss_len; /* Size (in bytes) of object pointed > to by 'ss' */ > } > > epoll_pwait1(int epfd, struct epoll_event *events, int maxevents, > struct timespec *timeout, int clock_id, int flags, > int timeout, > const struct sigargs *sargs); > Alternatively, place the clock_id in the lower 16 bits of flags. MAX_CLOCKS is 16 right now, so there's room. Paolo