首页 | 本学科首页   官方微博 | 高级检索  
     

基于语义补丁的Linux驱动程序后向移植技术
引用本文:朱丽华,文艳军,董威.基于语义补丁的Linux驱动程序后向移植技术[J].计算机科学,2017,44(11):64-68, 79.
作者姓名:朱丽华  文艳军  董威
作者单位:国防科技大学计算机学院 长沙410073,国防科技大学计算机学院 长沙410073,国防科技大学计算机学院 长沙410073
基金项目:本文受国家自然科学基金(91318301),国家重点基础研究发展计划(973计划)(2014CB340703)资助
摘    要:使用语义补丁技术对Linux的网卡驱动程序的后向移植方法进行研究。通过分析多个不同内核版本的驱动程序代码,在兼容库代码的支持下,提出了一种使用语义补丁进行驱动程序后向移植的方法。针对符号和函数分别开发了语义补丁,解决了后向移植过程中代码冗余以及补丁文件过多的问题,提高了后向移植的效率。实验分析表明,所使用的语义补丁的代码行数比普通补丁减少了很多,使得移植过程更加高效。在后向移植的过程中,对兼容库的构造方法进行了总结,使得移植后的代码可读性更强。所提方法对实现其他驱动程序的后向移植提供了借鉴意义。

关 键 词:语义补丁  驱动程序  兼容库  后向移植
收稿时间:2016/10/7 0:00:00
修稿时间:2016/12/1 0:00:00

Backporting of Linux Device Drivers Using Semantic Patch
ZHU Li-hu,WEN Yan-jun and DONG Wei.Backporting of Linux Device Drivers Using Semantic Patch[J].Computer Science,2017,44(11):64-68, 79.
Authors:ZHU Li-hu  WEN Yan-jun and DONG Wei
Affiliation:College of Computer,National University of Defense Technology,Changsha 410073,China,College of Computer,National University of Defense Technology,Changsha 410073,China and College of Computer,National University of Defense Technology,Changsha 410073,China
Abstract:The paper studied the backporting of network device drivers in Linux kernels using semantic patch technology.After analyzing the code of device drivers in many different kernel versions,this paper proposed an approach to backport device drivers using semantic patch technology with compatibility library.Semantic patches are developed sepa-rately according to symbols and functions, which reduces the redundancy of code and improves the efficiency of backporting.The experiment shows that the lines of code of semantic patches are much less than normal patches.Some experiences about building compatibility library were also proposed in the paper.The results show that this approach is also valuable for backporting other device drivers.
Keywords:Semantic patch  Device driver  Compatibility library  Backport
点击此处可从《计算机科学》浏览原始摘要信息
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号