public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* poll
@ 2004-06-17 14:05 Richard B. Johnson
  2004-06-17 22:34 ` poll Ben Greear
  0 siblings, 1 reply; 7+ messages in thread
From: Richard B. Johnson @ 2004-06-17 14:05 UTC (permalink / raw)
  To: Linux kernel


Hello,
Is it okay to use the 'extra' bits in the poll return value for
something? In other words, is the kernel going to allow a user-space
program to define some poll-bits that it waits for, these bits
having been used in the driver?

If not, then I guess I have to use POLLPRI and then the listener
will have to call an ioctl() function to find out what event it
really was. This seems very dumb.

I have three events I need to poll for, normal data available,
a mailbox message available, and another mailbox message available.

If, for instance, all the high-bits in the poll-flag are available,
then I could use two for the mail-box messages. However, if the kernel
uses them for something else, or ignores them, then I'm screwed and
have to make extra ioctl() calls to satisfy some abitrary rules.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
            Note 96.31% of all statistics are fiction.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-18 11:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-17 14:05 poll Richard B. Johnson
2004-06-17 22:34 ` poll Ben Greear
2004-06-18  0:19   ` poll Richard B. Johnson
2004-06-18  0:32     ` poll Davide Libenzi
2004-06-18  0:42       ` poll Richard B. Johnson
2004-06-18  2:24     ` poll Ben Greear
2004-06-18 11:22       ` poll Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox