Skip to contentSkip to conversation

uml newbie skas question

uml-devel Sam King 2 participants 2 messages Dec 18, 2003 – Dec 19, 2003 User-mode Linux (UML)

lore
Share & tools
lore

Sam King

author
#0 lore raw

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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 2 lines · Sam King

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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel