User: Password:
|
|
Subscribe / Log in / New account

poll: add poll_requested_events() and poll_does_not_wait() functions

From:  Hans de Goede <hdegoede@redhat.com>
To:  Linus Torvalds <torvalds@linux-foundation.org>
Subject:  [PATCH for 3.4] poll: add poll_requested_events() and poll_does_not_wait() functions
Date:  Mon, 19 Mar 2012 21:48:59 +0100
Message-ID:  <1332190140-16090-1-git-send-email-hdegoede@redhat.com>
Cc:  Andrew Morton <akpm@linux-foundation.org>, Al Viro <viro@zeniv.linux.org.uk>, Mauro Carvalho Chehab <mchehab@infradead.org>, linux-kernel@vger.kernel.org
Archive-link:  Article

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.


Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds