From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <400be6b918a68bbf172e27d1706352b6@hamnavoe.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] porting from vs. porting to Plan 9 From: Richard Miller In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sat, 18 Oct 2003 20:19:35 +0100 Topicbox-Message-UUID: 723dfe40-eacc-11e9-9e20-41e7f4b1d025 >>>It might be possible to construct a cage such that Linux drivers could >>>be compiled and run in Plan 9 kernels without causing too much damage >>>to the running system. Coincidentally, QNX Software Systems have just produced a white paper on a case study of converting a Linux driver (for the SMC9452TX ethernet adapter) to use with QNX. They report a successful result, largely because that particular Linux driver is "well-structured" with a clean division between hardware-specific code (which could be reused without changes) and OS-specific code (which was mostly rewritten). The hardware-specific and OS-specific parts were 7400 lines and 2030 lines of code respectively. The largest Plan 9 ethernet driver has 2117 lines of code in total. -- Richard