[lkml]   [2002]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] 2.5.46: epoll ep_insert doesn't wake waiters if events exist
    Looking at the documentation at, I noticed that the
    description for epoll_wait states: "On success, epoll_wait(2) returns the
    number of file descriptors ready for the requested I/O." My question is if
    I have, for example, 1000 sockets registered with epoll and 100 of them have
    received data and I call epoll_wait with max_events set to 10, will
    epoll_wait return 10 or 100? Furthermore, does the edge-triggered nature of
    epoll "eat the edge" for the other 90 sockets even though they didn't get
    returned? Finally, if those 10 sockets get more data before I call
    epoll_wait with max_events = 10 again, will those same 10 sockets get

    - Mark

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:30    [W:0.019 / U:6.224 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site