用C#开发NIC驱动程序
Development of a NIC driver in C#
摘要:
驱动程序在开发人员社区中具有特殊的地位,他们将其视为神秘和不可访问的。我们认为他们与硬件的广泛沟通以及他们对高性能的需求是造成这种坏名声的原因。根据一个广泛持有的观点,这两个要求不能满足使用高级语言。然而,高级语言的编译器和运行时在过去的几年里取得了很大的进步,以提高程序的性能。使用这些语言还可以通过处理一些容易出错的部分(如内存分配和访问)来显著减少程序员引入的错误和安全问题的数量。我们还认为使用高级语言可以帮助揭开驱动程序开发的神秘面纱。本项目尝试用C语言开发一个Intel 82599网卡的驱动程序。我们的目标是找出这种发展的可行性和这样的驱动程序的性能。我们也将能够告诉今天在C\#中编写驱动程序可能缺少什么。我们的驱动程序基于Pirelli(2020)提出的模型及其在C中的实现。
英文摘要:
Drivers have a special status among the developer community that sees them as mysterious and inaccessible. We think their extensive communication with the hardware and their need of high performance are the cause of this bad reputation. According to a widely held view, these two requirements cannot be met using high level languages. However high level languages' compilers and runtimes made great progress these past years to enhance the performance of programs. The use of these languages can also reduce by a significant amount the number of bugs and security issues introduced by the programmers by taking care of some error-prone parts like memory allocation and accesses. We also think that using high level languages can help to demystify the drivers' development. With this project, we try to develop a driver for a network card, the Intel 82599, in C\#. Our goal is to find out the feasibility of such a development and the performance of such a driver. We will also be able to tell what could be missing today in C\# to write a driver. We base our driver on the model proposed by Pirelli (2020) and its implementation in C.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。