From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Kent Gibson <warthog618@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>
Subject: Re: [libgpiod v2][PATCH] treewide: allow polling functions to block indefinitely
Date: Fri, 1 Jul 2022 13:10:12 +0200 [thread overview]
Message-ID: <CAHp75VeG3=uAk6V6MD9soFytrjsDgVnWNK8CodDW+_aY7f5Dug@mail.gmail.com> (raw)
In-Reply-To: <20220701110025.58399-1-brgl@bgdev.pl>
On Fri, Jul 1, 2022 at 1:06 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> All polling system calls have some way of being instructed to block
> indefinitely until some event is registered on the file descriptor.
>
> Make both the gpiod_chip_wait_info_event() and
> gpiod_line_request_wait_edge_event() accept negative timeout values in
> which case the underlying ppoll() will block indefinitely.
Long time no user space done by me, so here my silly question: how to
kill a task that is blocking indefinitely in ppoll()?
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2022-07-01 11:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-01 11:00 [libgpiod v2][PATCH] treewide: allow polling functions to block indefinitely Bartosz Golaszewski
2022-07-01 11:10 ` Andy Shevchenko [this message]
2022-07-01 11:52 ` Kent Gibson
2022-07-01 11:52 ` 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='CAHp75VeG3=uAk6V6MD9soFytrjsDgVnWNK8CodDW+_aY7f5Dug@mail.gmail.com' \
--to=andy.shevchenko@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=brgl@bgdev.pl \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).