All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Webb <w1@codecraftsmen.org>
To: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: RE: select() unblocks when no data to read()
Date: Wed, 08 May 2019 01:53:51 +0000	[thread overview]
Message-ID: <VpFdLbJqKpBKdxuwpEr9vxR2VBu2j4uXIps1EM68ktxueh7Q9bRQeHRA56sFDKeY1xbPcvb6TuGG01MVtxNt03OdF6N1b3YIEPjJnzbRjqk=@codecraftsmen.org> (raw)

I am having trouble using select() to perform a timed wait on a UDD file descriptor to detect interrupts from a custom PCI card.  After some searching, I came across this thread from 2017 that describes my exact issue:

https://xenomai.org/pipermail/xenomai/2017-July/037494.html

I am using x86-64 instead of ARM, but I am having the same trouble.  The original poster did a great job of describing the problem, so I won't repeat it.  If I use only read() without select(), things work as expected, but I need to implement a timeout.

It sounds like Philippe was going to look into the issue further.  Has any progress on this issue been made since the last post in this thread?

Thanks,

-Jeff Webb



             reply	other threads:[~2019-05-08  1:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-08  1:53 Jeff Webb [this message]
2019-05-09 14:19 ` select() unblocks when no data to read() Greg Gallagher
2019-05-10  1:26   ` Jeff Webb
2019-05-10  1:37     ` Greg Gallagher
2019-05-22 13:02       ` Jeff Webb
2019-05-10  8:24     ` Philippe Gerum
2019-05-22 13:06       ` Jeff Webb

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='VpFdLbJqKpBKdxuwpEr9vxR2VBu2j4uXIps1EM68ktxueh7Q9bRQeHRA56sFDKeY1xbPcvb6TuGG01MVtxNt03OdF6N1b3YIEPjJnzbRjqk=@codecraftsmen.org' \
    --to=w1@codecraftsmen.org \
    --cc=xenomai@xenomai.org \
    /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.