From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v5] Add epoll_wait06 test
Date: Tue, 29 Aug 2023 14:28:13 +0200 [thread overview]
Message-ID: <ZO3kXbZyOaPWimEx@rei> (raw)
In-Reply-To: <20230824144449.21325-1-andrea.cervesato@suse.de>
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2023-08-29 12:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 14:44 [LTP] [PATCH v5] Add epoll_wait06 test Andrea Cervesato
2023-08-29 12:28 ` Cyril Hrubis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZO3kXbZyOaPWimEx@rei \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox