All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Victor Condino <un1tz3r0@gmail.com>
Cc: UML Developer Mailing List <user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] Waiting for data on host FD
Date: Mon, 19 Sep 2005 12:26:12 -0400	[thread overview]
Message-ID: <20050919162612.GA5125@ccure.user-mode-linux.org> (raw)
In-Reply-To: <432E7091.8090403@gmail.com>

On Mon, Sep 19, 2005 at 04:02:25AM -0400, Victor Condino wrote:
> So my question is: what is the right way to go about waiting for host
> I/O to become available on a givel FD? It seems from looking at the uml
> drivers that um_request_irq is used to request notification of various
> asynchronous events from the host. 

This is the right way to do it.

> If this can be used for waiting until
> an fd is available for read or write, how? I tried looking around for
> some code that uses um_request_irq for read/write, but couldn't seem to
> find any.

Just register the same fd twice, once for read and once for write.

				Jeff


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2005-09-19 16:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-19  8:02 [uml-devel] Waiting for data on host FD Victor Condino
2005-09-19 16:26 ` Jeff Dike [this message]

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=20050919162612.GA5125@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=un1tz3r0@gmail.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.