版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五年度农产品代加工与农业绿色生产合作合同3篇
- 2025年度全新员工离职保密协议及知识产权归属合同2篇
- 二零二五年度互联网医疗股东股权变更及服务协议3篇
- 二零二五年度文化场馆租赁合同范本3篇
- 二零二五年度环保材料研发人员劳动合同书(含成果转化)2篇
- 2025年公司法人变更合同审查与合规性审查专项服务3篇
- 二零二五年度环保设备检修及保养协议3篇
- 二零二五年度农产品电商运营委托收购合作协议3篇
- 2025养生馆合伙人生态养生旅游项目合作协议3篇
- 二零二五年度农机作业与农村环境保护服务合同3篇
- 环境土壤学课件
- 《计算机组装与维护》课件
- 110kv各类型变压器的计算单
- 马克思中国化论文【3篇】
- 辽宁省辽南协作校物理高一上期末达标检测试题含解析
- 管径流速流量计算公式
- 中小学人工智能课程指南及教材介绍
- 城管总结美篇 城管总结结尾
- 校园零星维修服务 投标方案
- 工程承接施工能力说明
- 百词斩高考高分词汇电子版
评论
0/150
提交评论