* [uml-devel] uml newbie skas question
@ 2003-12-18 22:09 Sam King
2003-12-19 1:44 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Sam King @ 2003-12-18 22:09 UTC (permalink / raw)
To: user-mode-linux-devel
Hello,
I am new to uml development, and I am trying to figure
out some details of how the kernel works.
What are the write_sigio_thread and winch_thread
processes in skas mode used for?
Thanks.
--Sam
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [uml-devel] uml newbie skas question
2003-12-18 22:09 [uml-devel] uml newbie skas question Sam King
@ 2003-12-19 1:44 ` Jeff Dike
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2003-12-19 1:44 UTC (permalink / raw)
To: Sam King; +Cc: user-mode-linux-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-19 1:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-18 22:09 [uml-devel] uml newbie skas question Sam King
2003-12-19 1:44 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox