版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
1、A Comparative Study of the Linux and Windows Device Driver Architectures with a focus on IEEE1394 (high speed serial bus) driversMelekam Tsegayeg98t4414campus.ru.ac.zaSupervisors Prof. Richard Foss, Bradley KlinkradtOverviewThe Linux and Windows driver architecturesThe Linux and Windows IEEE 1394 dr
2、iver stacksDriver development on the two platformsResults of the studyWhy the study was conducted ?Microsoft Windows and Linux Two of the most popular operating systemsNo previous comparisons of their driver architectures done by other researchersIEEE 1394 (firewire)Popular bus offering high data tr
3、ansfer ratesActive research area for the CS departments Audio Engineering GroupIEEE 1394Data Transfer rates of 100, 200 and 400 MbpsIsochronous mode of transferGuaranteed bandwidth (80%)Asynchronous mode of transferGuaranteed packet delivery (20% or more) Fully plug n playIEEE 1394 Consumer Products
4、Device DriversA driver is a piece of software that extends a kernels functionality Drivers enable applications (through the kernel)to transfer data to and from a deviceto control the a device to allow modification of its attributesComposed of a set of routines that a kernel calls at appropriate time
5、s e.g. read/writeTypical driver routinesA driver would implementInitialisationCleanupOpenReadWriteI/O Control (ioctl)CloseThe Windows driver architectureStandard model The Windows Driver Model (WDM)bus, functional & filter driversPnP & Power managementCommunication I/O request packets (IRPs)The Linu
6、x driver architectureNo standard driver model Drivers are modulesNo PnP & Power management message dispatchingCommunication through direct function callsSide by side comparison of the two driver architecturesLinuxWindowsIEEE 1394 driver stacksThe Windows IEEE 1394 stack closed sourcemaintained by Mi
7、crosoftstableThe Linux IEEE 1394 stack open sourcemaintained by the Linux 1394 community (private individuals)tagged experimentalThe Windows IEEE 1394 stackHost controllerBus driverClient driversCommunication I/O request block (IRB)The Linux IEEE 1394 stackHost controllerBus driversClient driversCom
8、municationdirect function callsDirect driver possibleSide by side comparison of the two IEEE 1394 stacksLinuxWindowsThe Windows IEEE 1394 implementationThe Linux IEEE 1394 implementationWhat operations should IEEE 1394 client drivers provide ?Asynchronous OperationsReadWriteLockListenRegister Asynch
9、ronous ListeningDeregister Asynchronous ListeningIsochronous operationsListenTalkAsynchronous streamingWhat operations should IEEE 1394 client drivers provide ? (Continued)Bus reset handlingRegister Bus Reset HandlerGenerate Soft Bus ResetObtain Bus Information (e.g. node count)Local configuration R
10、OM manipulationNetwork troubleshooting Pinging of nodes Device Driver Development EnvironmentsIssues to be considered when creating driversMemory managementThe kernel provides memory allocation/de-allocation routinesHas two pools of memory (swappable, non-swappable)Data structuresThe kernel provides
11、 implementations for queues, lists, stacksSynchronisation with spin locks, mutexes, semaphores, signal objectsIssues to be considered when creating drivers (Continued)Drivers routines must be re-entrant i.e. should be executable by multiple threads with no problemsavoid recursionHardware Abstraction
12、 Layeruse HAL routines provided by the kernel to access hardwareMap of software produced during this studyWindows raw1394 driverLinux raw1394-2 driverLinux Ieee1394diagDriver TestsTests were run to determinehighest data transfer rates that can be achieved by each of the IEEE 1394 drivershow close th
13、ese came to the theoretical maximum of 50MB/sBus analyser used to measure the duration of data transfers the amount of data transferredCalculated the data transfer rate in MB/sTest resultsIsochronous mode Windows raw13948.9 MB/s packet size 1024 bytesLinux raw13944.5 MB/s packet size 512 bytesIsochr
14、onous mode (buffered)Linux raw1394-28.9 MB/s packet size 1024 bytesWindows raw139417.7 MB/spacket size 2048 bytesTest results (continued)Drivers from both Linux and Windows do not transfer data at a rate close to the theoretical 50MB/sThey achieve almost half that due to the PCI bus bottleneck (theo
15、retical 132MB/s) In practice have that availableshared by all I/O devices attached to the PCI busThe PCI bus has latency problemsdriver implementation may not be efficientConclusionA comparison of the Windows and Linux driver architectures has shown thatDrivers for the two platform have similar comp
16、onents composed of routines for performingI/O and device control drivers are modules which are loadable at runtimeWindows has a formally defined driver model, Linux does not.PnP and power management support integrated in the Windows architecture, not so in LinuxConclusion (continued)A comparison of
17、the Windows and Linux IEEE 1394 stacks has shown thatTheir IEEE 1394 driver stacks are broken up into similar layers host controller, bus and client driver layersEach stack provides the standard IEEE 1394 operations (both asynchronous and isochronous)The Linux IEEE 1394 stack is open source while th
18、e Windows stack is proprietaryEasier to create IEEE 1394 drivers for Linux than Windows since all source code is availableFuture workIEEE 1394.1 bridge awarenessIEEE 1394.1 allows extending the no. of nodes to 64K instead of the current 63still in draft phaseThe Windows and Linux IEEE 1394 driver developers did not take into account IEEE1394.1 bridging in their designThi
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 數(shù)學解題技巧與方法
- 2025版深圳租賃汽車租賃期限及責任劃分合同2篇
- 2025版消防系統(tǒng)設計與施工合同模板3篇
- 應急預案的執(zhí)行和改進
- 電力水利行業(yè)技術(shù)升級建議
- 男科護理工作總結(jié)
- 金融行業(yè)薪酬福利設計總結(jié)
- 二零二五年度個人之間生活費用借款合同2篇
- 小組合作學習在考試中的應用
- 二零二五年度公共設施防水保養(yǎng)合同4篇
- Unit 6 Beautiful landscapes Integration說課稿 - 2024-2025學年譯林版英語七年級下冊
- 測繪學基礎知識單選題100道及答案解析
- 2024年國家焊工職業(yè)技能理論考試題庫(含答案)
- 特魯索綜合征
- 2024年山東省泰安市高考語文一模試卷
- TCL任職資格體系資料HR
- 《中國古代寓言》導讀(課件)2023-2024學年統(tǒng)編版語文三年級下冊
- 五年級上冊計算題大全1000題帶答案
- 工程建設行業(yè)標準內(nèi)置保溫現(xiàn)澆混凝土復合剪力墻技術(shù)規(guī)程
- 屋面細石混凝土保護層施工方案及方法
- 110kv各類型變壓器的計算單
評論
0/150
提交評論