lkml.org 
[lkml]   [2015]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC 5/6] epoll: Add implementation for epoll_mod_wait


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


\
 
 \ /
  Last update: 2015-01-21 12:01    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog