linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH] Generalize poll events from eventfd
@ 2015-08-10  5:51 Damian Hobson-Garcia
  2015-08-10  5:51 ` [PATCH] eventfd: implementation of EFD_MASK flag Damian Hobson-Garcia
  0 siblings, 1 reply; 7+ messages in thread
From: Damian Hobson-Garcia @ 2015-08-10  5:51 UTC (permalink / raw)
  To: sustrik, viro
  Cc: linux-fsdevel, linux-kernel, netdev, linux-api,
	Damian Hobson-Garcia

Hello all,

eventfd is very useful for generating POLLIN/POLLOUT poll events from user
space but some applications may want to generate POLLPRI/POLLERR events as well.
This patch submission aims to generalize the events generated by an
eventfd. This is a resubmission of a patch from Feb 2013[1]. The original
discussion trailed off without any conclusion, but the original author
has recently confirmed[2] that this functionality is still useful, so I
volunteered to rebase and resubmit the patch for discussion.

I have rebased this patch onto v4.2-rc5 and modified the original patch to
not add an indentation level to the implementations of eventfd_{read,write,
poll}.  I hope these changes will make it easier to review. The description of
the efd_mask structure was also updated.

I have a few comments and questions, but I will add those separately as a
reply for open discussion.

[1] https://lkml.org/lkml/2013/2/18/147
[2] https://lkml.org/lkml/2015/7/9/153

Thank you,
Damian

Martin Sustrik (1):
  eventfd: implementation of EFD_MASK flag

 fs/eventfd.c                 | 91 ++++++++++++++++++++++++++++++++++++++------
 include/linux/eventfd.h      | 16 +-------
 include/uapi/linux/eventfd.h | 40 +++++++++++++++++++
 3 files changed, 121 insertions(+), 26 deletions(-)
 create mode 100644 include/uapi/linux/eventfd.h

-- 
1.9.1

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

end of thread, other threads:[~2015-08-11  7:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10  5:51 [RFC/PATCH] Generalize poll events from eventfd Damian Hobson-Garcia
2015-08-10  5:51 ` [PATCH] eventfd: implementation of EFD_MASK flag Damian Hobson-Garcia
     [not found]   ` <1439185906-28180-2-git-send-email-dhobsong-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org>
2015-08-10  6:23     ` Damian Hobson-Garcia
2015-08-10  6:39       ` Martin Sustrik
     [not found]         ` <45138eb2cdd715f14fbd01fb5c8d3655-NG+5sAMe/NuLHBE00WrnfQ@public.gmane.org>
2015-08-10  8:57           ` Damian Hobson-Garcia
     [not found]             ` <55C86762.5010709-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org>
2015-08-10 21:16               ` Martin Sustrik
2015-08-11  7:54                 ` Damian Hobson-Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).