节点文献
基于RTLinux的实时内核软件的研究
【作者】 赖蔚蔚;
【导师】 李孝安;
【作者基本信息】 西北工业大学 , 计算机软件与理论, 2004, 硕士
【摘要】 Linux是当前主流通用操作系统之一,具有源码开放、多平台支持、计算机资源丰富等优点。但实时性要求强的应用场合,Linux往往难于满足要求。因此,实时Linux成为一个重要的研究课题。RTLinux是建立于Linux之上的一个实时操作系统实现,不仅具有硬实时性的机制,同时又能极大地发挥Linux自身的各种优点。但RTLinux在实时应用中同样也存在不足,RTLinux的实时线程没有文件系统,不支持实时存盘。而对于有实时存盘要求的系统,现有的RTLinux系统是无法满足的。 本论文针对有实时存盘要求的应用需求,研究开发基于RTLinux的实时内核软件。首先,详细分析了Linux实时性相关的内核源代码模块以及RTLinux的源代码,为进一步完善RTLinux的设计奠定基础;然后,详细总结RTLinux的基本原理框架和实现机制,研究发现了RTLinux的实时线程不允许调用任何Linux内核函数的原因,提出了解决方案;随后,设计了RTLinux下的实时存盘系统方案;具体设计实现中,为RTLinux的实时线程构造了一个文件系统,使得RTLinux的实时线程支持实时存盘;最后,针对RTLinux平台在实时能力方面的不足问题,进行了实时性能的扩展研究,并且在实际应用项目中成功地验证了该方案的有效性。
【Abstract】 Linux is one of the most popular operation systems (OS), and it has lots of advantages, such as open source code, supportting different platforms, and having abundant computer resources. But Linux usually can not satify the requirements of real time systems. So, studying real time Linux becomes a very important project.RTLinux is a good implementation of real time operation system bases on Linux. RTLinux is a hard real time OS, and has the advantages of Linux. But RTLinux also has some disadvantages in the real time applications. For example, RTLinux do not have any file systems, it can not be used in the projects that real time storage to harddisk is requested.Incorporated with the real time storage application, this thesis mainly studys and develops the real time kernel software based on RTLinux. Firstly, we read roundly the source code of Linux and RTLinux. The framework and the mechanism of Linux and RTLinux have been summarized. Secondly, we find out why the thread of RTLinux can not call any functions of Linux kernel, and then we put . forward a project to solve the problem. Thirdly, we present the design of a real time data storage to harddisk based on RTLinux. A file system has been designed for real-time kernel of RTLinux in order to support real time data storage. Finally, we give an extended . implementation to RTLinux. The practical experiments have demonstrated the excellent performance of our extended RTLinux.
【Key words】 Linux; RTLinux; file system; device driver; harddisk partition; real time storage;
- 【网络出版投稿人】 西北工业大学 【网络出版年期】2004年 03期
- 【分类号】TP316.81
- 【被引频次】10
- 【下载频次】500