[PATCH for 3.4] poll: add poll_requested_events() and poll_does_not_wait() functions

From: Hans de Goede
Date: Mon Mar 19 2012 - 16:47:19 EST


Hi Linus,

The attached patch adds the useful functionality for drivers to be able to
tell which events are being polled for when their poll function gets called.

It has been reviewed by Al Viro, and he sees no problems with it. Al has asked
me to send this patch directly to you because he believes you should make the
decision on merging this, as it may break drivers not in the mainline.

This patch is esp. useful for the v4l subsystem, and it has been ready and
waiting for merging in one form or another for 2 full release-cycles now (*),
so we (the v4l devs) would very much like to get this upstream for 3.4 .

Note that I'm not the original author of this patch, the original author is
Hans Verkuil, who unfortunately won't be able to do kernel development for
a while due to personal circumstances.

Thanks & Regards,

Hans


*) Although the adding of this functionality is uncontroversial, getting this
patch upstream has been troublesome since it touches some pretty core code,
and it was hard to find the right person to review and sign-off on it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/