The case for active device drivers

L. Ryzhyk, Yanjin Zhu, G. Heiser
{"title":"The case for active device drivers","authors":"L. Ryzhyk, Yanjin Zhu, G. Heiser","doi":"10.1145/1851276.1851283","DOIUrl":null,"url":null,"abstract":"We revisit the device-driver architecture supported by the majority of operating systems, where a driver is a passive object that does not have its own thread of control and is only activated when an external thread invokes one of its entry points. This architecture complicates driver development and induces errors in two ways. First, since multiple threads can invoke the driver concurrently, it must take care to synchronise the invocations to avoid race conditions. Second, since every invocation occurs in the context of its own thread, the driver cannot rely on programming-language constructs to maintain its control flow. Both issues make the control logic of the driver difficult to implement and even harder to understand and verify.\n To address these issues, we propose a device-driver architecture where each driver has its own thread of control and communicates with other threads in the system via message passing. We show how this architecture addresses both of the above problems. Unlike previous message-based driver frameworks, it does not require any special language support and can be implemented inside an existing operating system as a kernel extension. We present our Linux-based implementation in progress and report on preliminary performance results.","PeriodicalId":202924,"journal":{"name":"Asia Pacific Workshop on Systems","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-08-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"19","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Asia Pacific Workshop on Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1851276.1851283","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 19

Abstract

We revisit the device-driver architecture supported by the majority of operating systems, where a driver is a passive object that does not have its own thread of control and is only activated when an external thread invokes one of its entry points. This architecture complicates driver development and induces errors in two ways. First, since multiple threads can invoke the driver concurrently, it must take care to synchronise the invocations to avoid race conditions. Second, since every invocation occurs in the context of its own thread, the driver cannot rely on programming-language constructs to maintain its control flow. Both issues make the control logic of the driver difficult to implement and even harder to understand and verify. To address these issues, we propose a device-driver architecture where each driver has its own thread of control and communicates with other threads in the system via message passing. We show how this architecture addresses both of the above problems. Unlike previous message-based driver frameworks, it does not require any special language support and can be implemented inside an existing operating system as a kernel extension. We present our Linux-based implementation in progress and report on preliminary performance results.
活动设备驱动程序的情况
我们重新审视大多数操作系统支持的设备驱动程序体系结构,其中驱动程序是一个被动对象,它没有自己的控制线程,只有在外部线程调用其入口点之一时才被激活。这种体系结构使驱动程序开发复杂化,并在两个方面引起错误。首先,由于多个线程可以并发地调用驱动程序,因此必须注意同步调用以避免竞争条件。其次,由于每次调用都发生在其自身线程的上下文中,因此驱动程序不能依赖编程语言结构来维护其控制流。这两个问题都使驱动程序的控制逻辑难以实现,甚至更难理解和验证。为了解决这些问题,我们提出了一个设备驱动程序架构,其中每个驱动程序都有自己的控制线程,并通过消息传递与系统中的其他线程通信。我们将展示该体系结构如何解决上述两个问题。与以前基于消息的驱动程序框架不同,它不需要任何特殊的语言支持,并且可以作为内核扩展在现有操作系统中实现。我们介绍了正在进行的基于linux的实现,并报告了初步的性能结果。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信