linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Sam King <sam_king18@yahoo.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] uml newbie skas question
Date: Thu, 18 Dec 2003 20:44:17 -0500	[thread overview]
Message-ID: <20031219014417.GB4945@ccure.user-mode-linux.org> (raw)
In-Reply-To: <20031218220922.87234.qmail@web14004.mail.yahoo.com>

On Thu, Dec 18, 2003 at 02:09:22PM -0800, Sam King wrote:
> What are the write_sigio_thread and winch_thread
> processes in skas mode used for?

The write SIGIO thread - until fairly recently, output SIGIO (i.e. a SIGIO
when you can write something to a device) wasn't supported by pty devices.
To work around this, and avoid losing characters when UML is spitting out
lots of stuff, I added this thread.  Its job is to wait synchronously (via
poll) until a file descriptor that it has been told to keep track of reports
that it can be written to.  At this point, it writes a character down a 
pipe (actually a socketpair) waking up the UML kernel proper, which has an
IRQ attached to the other end.

The winch threads - we need a way to receive SIGWINCH on host devices so that
they can be relayed on to whatever UML process is running on the corresponding
console.  The problem here is that only the owner of a terminal can receive
SIGWINCH, and a process can only own one terminal.  This rules out having UML
itself receive the SIGWINCHs, so these guys exist solely to own a terminal,
receive any SIGWINCHs that they emit, and interrupt UML in the same way as
the SIGIO thread.

				Jeff




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
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:[~2003-12-19  1:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-18 22:09 [uml-devel] uml newbie skas question Sam King
2003-12-19  1:44 ` 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=20031219014417.GB4945@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=sam_king18@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox