版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- Unit2第六课时单元复习课件鲁教版(五四制)英语七年级下册
- 初中八年级科学《叶的形态结构与蒸腾作用调控》实验探究教学设计
- 八年级历史与社会上册《对峙与共生:南宋与金的政治、军事及经济文化关系》深度探究教学设计
- 八年级数学(上册)全等三角形单元整体学习导学案
- 初中八年级地理《探秘民族分布格局 共筑中华民族共同体》教学设计
- 中医内科护理查房:中医对慢性肝炎的护理
- 初三历史中考一轮复习:现代中国国防现代化与外交战略演进教案
- 初中八年级道德与法治《认识总体国家安全观》教学设计
- 配套BOP建安工程方案投标文件(技术标)
- 初中八年级历史上册《民主革命先行者孙中山》深度学习知识清单
- 2026新教材语文 第5课《秋天的怀念》教学课件
- 三级医院评审标准(2025年版)系列讲座-医院感染管理相关指标解读
- DK7735型数控线切割机床使用说明书
- 教师考试复习-教育教学基础知识总结归纳
- 2025年广东中山市八年级地理生物会考试题题库(答案+解析)
- 食品安全与操作规范试题及答案
- 1月广电和通信设备电子装接工考试题(含答案)
- 农村集体三资培训课件
- YB-T6332-2024《钢铁行业用塑烧板除尘器》
- 2026年中国石油集团招聘考试试题及答案
- 2025贵州贵阳市人才发展集团有限公司第二批招聘23人笔试备考试题附答案
评论
0/150
提交评论