我們對OSKit的分析方法是將其功能劃分成一些相對獨立的模塊,由我們課題組內的幾名同學分頭分析。我負責分析OSKit包裝其它系統的驅動程序的方法。在開發一個操作系統的過程中,為各種設備開發驅動程將是一種非常費時費力的工作。把一些開放源碼的操作系統的驅動程序,在不修改原驅動程序代碼的前提下,僅僅通過包裝使這其可以在新系統中使用,這是OSKit的一大特色。這為開發新的操作系統的開發人員提供了一種有效的方法,節省了開發新系統的時間。
本文首先講解了OSKit內核為驅動程序提供的接口以及驅動程序應當為操作系統提供的使用接口。後面以OSKit包裝Linux驅動程序的實例,具體的討論了包裝的思路及方法。希望我們的工作,能夠對將來使用OSKit這一工具的開發人員有所幫助,對其它操作系統的研究人員有所啟發。
ABSTRACT
This paper introduced a operating system development toolkit OSKit. It focusd on the method that OSKit used to wrap the device driver in someother operating system, and also describes how to write device drivers under OSKit.
The OSKit is a framework and a set of more than thirty componnet libaraies oriented to operating systems. The OSKit’s goal is to lower the barrier to entry to OS research and develeopment and to lower its costs. Porting device driver from some other open source operating system such as Linux and FreeBSD is the most noticeable characteristic of OSKit. With the idea and method of OSKit use, OS developers can easily include existing device drivers.
This thesis discussed the method that OSKit used to wrap device drivers from other operating systems by example. I hope that it is a good reference for OS developers.