mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roland Dreier <rdreier@cisco.com>
To: adi hodos <thefatredguy@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Suggested addition to epoll interface - epoll_post_notification()
Date: Tue, 15 Sep 2009 11:16:49 -0700	[thread overview]
Message-ID: <adak500f4z2.fsf@cisco.com> (raw)
In-Reply-To: <2517f1930909150559p505b583fpf3501a1c7dad6634@mail.gmail.com> (adi hodos's message of "Tue, 15 Sep 2009 15:59:00 +0300")


 > I have been playing with epoll lately and I would like to make a suggestion
 > regarding the epoll interface.
 > It would be nice to have a function to wake up a thread/process that is blocked
 > on an epoll_wait() call and sent it some
 > user defined data in the form of a struct epoll_event parameter ( something
 > similar with PostQueuedCompletionStatus() from Windows ).

You might have a look at eventfd() which creates an fd that can be used
to signal from one thread to another (and which can be waited on with epoll).

 - R.

  reply	other threads:[~2009-09-15 18:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15 12:59 adi hodos
2009-09-15 18:16 ` Roland Dreier [this message]
2009-09-15 18:48 ` Davide Libenzi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=adak500f4z2.fsf@cisco.com \
    --to=rdreier@cisco.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thefatredguy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®