lkml.org 
[lkml]   [2004]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectpoll

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.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.064 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site