[LTP] [PATCH v5] Add epoll_wait06 test

Cyril Hrubis chrubis@suse.cz
Tue Aug 29 14:28:13 CEST 2023


Hi!
Pushed with a minor change, thanks.

> +/*\
> + * [Description]
> + *
> + * Verify that edge triggering is correctly handled by epoll, for both EPOLLIN
> + * and EPOLLOUT.
> + *
> + * [Algorithm]
> + *
> + * 1. The file descriptor that represents the non-blocking read side of a pipe
> + *    (rfd) is registered on the epoll instance.

I've rewrote this part sice we register both file descriptors in the
code.

> + * 2. A pipe writer writes data on the write side of the pipe.
> + * 3. A call to epoll_wait() is done that will return a EPOLLIN event.
> + * 4. The pipe reader reads half of data from rfd.
> + * 5. A call to epoll_wait() should hang because there's data left to read.
> + * 6. The pipe reader reads remaining data from rfd.
> + * 7. A call to epoll_wait() should return a EPOLLOUT event.

And changed this list from numbered to dashes, since that renders better
in the asciidoc documentation.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list