On 26/05/15 15:00, Martin Lucina wrote:
+static int
+rumpcons_poll(struct file *fp, int events)
+{
+ int revents = 0;
+
+ if (events & (POLLOUT | POLLWRNORM))
+ revents |= POLLOUT | POLLWRNORM;
+
+ return revents;
+}
Why not "events & (POLLOUT|POLLWRNORM)"? Is it always supposed to return both even if not asked for?
