From: Bartosz Golaszewski <brgl@bgdev.pl>
To: "Linus Walleij" <linus.walleij@linaro.org>,
"Kent Gibson" <warthog618@gmail.com>,
"Gunnar Thörnqvist" <gunnar@igl.se>
Cc: linux-gpio@vger.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Subject: [libgpiod][PATCH v2 0/4] tools: timeout handling improvements
Date: Tue, 16 Apr 2024 23:52:18 +0200 [thread overview]
Message-ID: <20240416215222.175166-1-brgl@bgdev.pl> (raw)
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Here's an assortment of improvements to parsing and handling of timeouts
in gpio-tools.
I still decided to unify the period parsing between gpioset and gpioget even
if it doesn't make much sense for gpioget to support periods longer than
fractions of a second. Let users decide.
v1 -> v2:
- extend the series with renaming the timeout variable, using ppoll() instead
of poll() and supporting minutes as time unit
- drop already applied patch
Bartosz Golaszewski (4):
tools: rename timeout to idle_timeout in gpiomon and gpionotify
tools: use ppoll() where higher timeout resolution makes sense
tools: allow longer time periods
tools: add minutes as a new supported time unit
configure.ac | 2 ++
tools/gpioget.c | 4 ++--
tools/gpiomon.c | 28 +++++++++++++++++++++-------
tools/gpionotify.c | 16 ++++++++++++----
tools/gpioset.c | 16 ++++++++--------
tools/tools-common.c | 32 ++++++++++++++++++++++----------
tools/tools-common.h | 5 +++--
7 files changed, 70 insertions(+), 33 deletions(-)
--
2.40.1
next reply other threads:[~2024-04-16 21:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-16 21:52 Bartosz Golaszewski [this message]
2024-04-16 21:52 ` [libgpiod][PATCH v2 1/4] tools: rename timeout to idle_timeout in gpiomon and gpionotify Bartosz Golaszewski
2024-04-16 21:52 ` [libgpiod][PATCH v2 2/4] tools: use ppoll() where higher timeout resolution makes sense Bartosz Golaszewski
2024-04-17 7:23 ` Kent Gibson
2024-04-22 18:15 ` Bartosz Golaszewski
2024-04-22 23:31 ` Kent Gibson
2024-04-16 21:52 ` [libgpiod][PATCH v2 3/4] tools: allow longer time periods Bartosz Golaszewski
2024-04-16 21:52 ` [libgpiod][PATCH v2 4/4] tools: add minutes as a new supported time unit Bartosz Golaszewski
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=20240416215222.175166-1-brgl@bgdev.pl \
--to=brgl@bgdev.pl \
--cc=bartosz.golaszewski@linaro.org \
--cc=gunnar@igl.se \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=warthog618@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.