All of lore.kernel.org
 help / color / mirror / Atom feed
* TIOCMIWAIT hopelessly broken?
@ 2009-03-14  2:13 Adam Goode
  0 siblings, 0 replies; only message in thread
From: Adam Goode @ 2009-03-14  2:13 UTC (permalink / raw)
  To: linux-serial

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

Hi,

The ioctl TIOCMIWAIT seems to be inadequate for tracking changes in the
modem status lines. The main problem is that it cannot be used without
racing: if the status change you are waiting for happens before your
ioctl, you will wait forever.

A solution would be one like a eventfd, something that can be put to
poll(), epoll(), or select(), and where you read the status changes with
read().

Any ideas on how to do this? Would it be a new syscall, something in
/sys, a flag to open() ?


Thanks,

Adam


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-14  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-14  2:13 TIOCMIWAIT hopelessly broken? Adam Goode

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.