基于语义补丁的Linux驱动程序后向移植技术  被引量:1

Backporting of Linux Device Drivers Using Semantic Patch

在线阅读下载全文

作  者:朱丽华 文艳军[1] 董威[1] 

机构地区:[1]国防科技大学计算机学院,长沙410073

出  处:《计算机科学》2017年第11期64-68,79,共6页Computer Science

基  金:国家自然科学基金(91318301);国家重点基础研究发展计划(973计划)(2014CB340703)资助

摘  要:使用语义补丁技术对Linux的网卡驱动程序的后向移植方法进行研究。通过分析多个不同内核版本的驱动程序代码,在兼容库代码的支持下,提出了一种使用语义补丁进行驱动程序后向移植的方法。针对符号和函数分别开发了语义补丁,解决了后向移植过程中代码冗余以及补丁文件过多的问题,提高了后向移植的效率。实验分析表明,所使用的语义补丁的代码行数比普通补丁减少了很多,使得移植过程更加高效。在后向移植的过程中,对兼容库的构造方法进行了总结,使得移植后的代码可读性更强。所提方法对实现其他驱动程序的后向移植提供了借鉴意义。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 separately 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.

关 键 词:语义补丁 驱动程序 兼容库 后向移植 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象