Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1225732

[PATCH v2 0/1] Generalize poll events from eventfd

From Damian Hobson-Garcia <dhobsong@igel.co.jp>
Newsgroups linux.kernel
Subject [PATCH v2 0/1] Generalize poll events from eventfd
Date 2015-09-16 08:30 +0200
Message-ID <q9eo9-4IR-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Using eventfd user space can generate POLLIN/POLLOUT events 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.

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

Changes in v2
-------------

* rebased on Linux v4.3-rc1
* Move file operation implementations for EFD_MASK to a seperate structure
* Remove 'data' element from efd_mask structure
* read() is no longer supported when EFD_MASK is set (fails with EINVAL)
* eventfd_ctx_fileget() now returns EINVAL when EFD_MASK is set, eliminating
  the possibility of triggering the orginal BUG_ON() macros which have now
  been removed.

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

--
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/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/1] Generalize poll events from eventfd Damian Hobson-Garcia <dhobsong@igel.co.jp> - 2015-09-16 08:30 +0200
  [PATCH v2 1/1] eventfd: implementation of EFD_MASK flag Damian Hobson-Garcia <dhobsong@igel.co.jp> - 2015-09-16 08:30 +0200
    Re: [PATCH v2 1/1] eventfd: implementation of EFD_MASK flag Martin Sustrik <sustrik@250bpm.com> - 2015-09-16 09:00 +0200
      Re: [PATCH v2 1/1] eventfd: implementation of EFD_MASK flag Damian Hobson-Garcia <dhobsong@igel.co.jp> - 2015-09-16 09:50 +0200

csiph-web