Messages in this thread |  | | Date | Wed, 21 Jan 2015 11:34:38 +0100 | | From | Paolo Bonzini <> | | Subject | Re: [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
|  |