Thread (3 messages) flat view 3 messages, 3 authors, 2015-01-21

Re: [PATCH RFC 5/6] epoll: Add implementation for epoll_mod_wait

From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2015-01-21 10:35:47
Also in: linux-fsdevel, lkml


On 21/01/2015 08:52, Michael Kerrisk (man-pages) wrote:
quoted
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help