Skip to contentSkip to conversation

stdio and serial consoles.

uml-devel Rob Landley 2 participants 2 messages Mar 14, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Is it just me, or is stdio_console.c and ssl.c basically the same code with a couple of variables renamed, a different driver structure initialization, and slightly different header #includes?

Rob

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 3 lines · [email protected] said:

Is it just me, or is stdio_console.c and ssl.c basically the same code with a couple of variables renamed, a different driver structure initialization, and slightly different header #includes?

Yeah, they started off as totally different drivers until I realized that there was no reason for them to be different. So I spent a good amount of time factoring out common code until you basically have one code base which plugs itself into the kernel in two slightly different ways.

Jeff

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel