TIOCMIWAIT hopelessly broken?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux