首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到19条相似文献,搜索用时 203 毫秒
1.
可重用Linux设备驱动程序框架   总被引:1,自引:0,他引:1       下载免费PDF全文
袁丽慧  彭磊 《计算机工程》2008,34(10):89-91
Linux设备驱动程序的开发工作涉及到相当多的系统内核细节,对开发人员的要求很高。由于缺乏必要的可重用性,一个新设备的驱动程序的开发速度也很缓慢。为了简化其开发流程和提高已有代码的可重用性,该文将C++语言引入到Linux内核环境,以面向对象的方法设计了一个驱动程序开发框架。该框架封装了Linux内核对设备驱动程序的生命周期管理和行为管理,可以在保证设备驱动程序质量的基础上,降低开发难度,加快开发速度,规范开发流程。  相似文献   

2.
Android操作系统是基于Linux平台而开发。该操作系统主要分为以下三部分:最下层是以C语言开发的Linux内核,提供基本功能;中间层是函数库Library和虚拟机Virtual Machine,由C++开发;各种应用软件位于最上层,包括传输程序,浏览器程序等,部分程序以Java编写。USB/串口转换是实现USB与RS-232/RS-485/RS-422串口设备相互通讯的一种协议转换(USB协议-串行通信协议)。  相似文献   

3.
Android是基于Linux的移动操作系统,主要使用于智能手机和平板电脑等移动设备,它采用的是分层架构框架,包括:应用程序层、应用程序框架层、系统运行库层、Linux内核层,其中应用程序层是使用Java语言编写的.以Eclipse为开发环境,在Android-sdk-4.2.2和Android-ndk-r10基础上实现了Java和C++的混合编程,用Java实现应用程序UI操作部分,用C++实现图像处理、算法等运算量大的部分,这样整个应用程序的执行效率就会得到改善和提高.  相似文献   

4.
C++Builder 6凭借最新的Web服务技术,支持具有跨平台功能的Windows/Linux应用程序全球领先的高性能电子商务应用平台供应商美国Borland软件公司,今天宣布推出Borland C++Builder 6。利用C++Builder 6,用户可以在真正的C++可视化开发环境中,快速开发具有Web服务支持功能的电子商务应用程序。全球约260万的C++开发人员借助C++Builder 6,并利用目前正计划推出的Borland C++Linux平台产品,就可以构建和部署具有跨平台功能的Windows/Linux GUI、数据库、Web服务器和Web服务应用程序。这一产品组合简化了全球客户、供应商、商业合作伙伴和雇员间跨平台进行电子商务的集成过程。  相似文献   

5.
Git——版本管理之利器   总被引:1,自引:0,他引:1  
宋冬生 《程序员》2007,(11):118-119
前不久,Linux之父Linus Torvalds和微软的Dmitry Kakurin进行了一场口水战,在争端中,Linus Torvalds炮轰C++是“糟糕程序员的垃圾语言”。这场争端的源头,就是Linus Torvalds为开发Linux内核而专门打造的、用C语言写成的版本控制软件Git,Git也由此引起的业界的广泛关注。  相似文献   

6.
Borland软件公司今天宣布推出Borland(?)Kylix~(TM)3,这是Linux(?)操作系统上C++和Borland Delphi~(TM)的第一款快速应用开发(BAD)解决方案。有史以来第一次,Linux开发人员可以用自己喜爱的编程语言——C++——来为Linux操作系统/平台快速创建GUI、数据库、Web和Web服务应用程序。Kylix 3通过提供关键技术带动了Linux在企业中的普及,据IDC估计,Kylix 3已将用于Linux的快速应用开发解决方案推介给了全球逾二百万的C++开发人员。  相似文献   

7.
基于URL的Web服务器数据访问   总被引:1,自引:0,他引:1  
随着90年代Internet引发计算模式革命,Java作为第一个以网络化观念设计的语言,凭借强大的网络开发功能迅速在网络开发和应用中崛起。在Java的内核API中,为网络开发提供了设计良好的接口,大部分应用层网络软件用Java编写要比用C或C++语言开发的网络软件更快捷更简便。 本文的示例程序是一个使用URL类开发的访问Web服务器数据程序。  相似文献   

8.
移植操作系统是开发嵌入式系统的前提和基础,通过将Linux 2.6内核移植到S3C2410目标板上,提出了嵌入式Linux移植的方法与具体实现过程。编译生成的内核在嵌入式系统中运行稳定。结果证明方法可行,并对开发其它类型的嵌入式系统有一定的参考意义。  相似文献   

9.
李树芳  安金霞  刘洋  陈良 《计算机科学》2017,44(11):191-194
近年来,越来越多的安全关键软件系统运行在国产Linux操作系统上,其中大多数采用C++开发,而C++正在扩展新版语言规范,已有的覆盖率统计插装工具不能满足要求。给出一种基于Clang/LLVM的C++源代码覆盖率统计插装方法,利用开源社区Clang/LLVM库提供的C++源代码解析和操作功能,构建面向C++源代码的语句、分支和MC/DC覆盖率统计框架,在运行时采集覆盖率信息并进行统计分析,输出覆盖率分析报告。实际案例表明,该方法简易实用,能够满足真实工程软件的覆盖率测试分析需求。  相似文献   

10.
移植标准Linux到S3C2410   总被引:4,自引:4,他引:4  
本文描述了将Linux移植到基于S3C2410处理器目标板上的方法与过程。着重介绍了Linux内核的移植的原理与操作方法。移植后的Linux在嵌入式系统中运行良好。对其他嵌入式操作系统的开发同样具有参考意义。  相似文献   

11.
根据层次化模型的优点,将邮件检测服务较为复杂部分———不良内容检测移入内核,利用Linux内核机制,用标准C语言实现了在SMP结构体系中对邮件不良信息的并行检测。实现中,多CPU并行检测和邮件专用缓存是检测高效性的保证,模块在内核中的合理调度为该系统提供了良好的可行性。  相似文献   

12.
Linux is an open‐source operating system, which has increased in its popularity and size since its birth. Various studies have been conducted in literature on the evolution of the Linux kernel, which have shown that there are considerable maintenance problems arising out of the coupling issues in the Linux kernel and this may hamper the evolution of the kernel in future. We propose an object‐oriented (OO) wrapper‐based approach to Linux kernel to provide OO abstractions to external modules. As the major growth of the size of the Linux kernel is in device drivers, our approach provides substantial benefits in terms of developing the device drivers in C++, although the kernel is in C. Providing reusability and extensibility features to device drivers improves the maintainability of the kernel. The OO wrappers provide several benefits to module developers in terms of understandability, development ease, support for OO modules, etc. The design and implementation of C++ wrappers for Linux kernel and the performance of a device driver re‐engineered in C++ are presented in this paper. Copyright © 2008 John Wiley & Sons, Ltd.  相似文献   

13.
罗俊  谭兴烈 《计算机工程与应用》2005,41(17):133-135,189
Linux内核只提供了经典的UNIX自主访问控制。Linux安全模块(LSM)是Linux内核的一个轻量级通用访问控制框架,它使得各种不同的安全访问控制模型能够以Linux可加载内核模块的形式实现出来。首先时Linux安全模块(LSM)的实现机制和接口进行了介绍,然后提出了一种时Linux文件系统的基于LSM架构的强访问控制增强,同时改进了LSM机制引入了多级安全策略的机制。  相似文献   

14.
分析了KGDB的工作原理,讨论了KGDB在ARM Linux嵌入式系统上的实现,并以三星S3C2410处理器为例,给出了使用KGDB在ARM Linux上调试内核及模块的方法.该方法可移植性强,为在ARM Linux上从事内核及驱动程序开发的人员提供了源码级调试的有效手段.  相似文献   

15.
张达运  汪汉新 《计算机工程》2011,37(11):283-284
为减小传统的通过编写大量代码来调用Linux内核及驱动接口进行测试的编程难度,缩短测试周期,采用将Lua脚本语言载入Linux内核并使用脚本语言进行内核及驱动测试的方法,设计并实现一种简易Linux内核驱动测试工具。实验结果表明,该工具所占用的Linux内核空间小,使用灵活方便,可对内核及驱动模块进行准确有效的测试。  相似文献   

16.
Data coupling between modules, especially common coupling, has long been considered a source of concern in software design, but the issue is somewhat more complicated for products that are comprised of kernel modules together with optional nonkernel modules. This paper presents a refined categorization of common coupling based on definitions and uses between kernel and nonkernel modules and applies the categorization to a case study. Common coupling is usually avoided when possible because of the potential for introducing risky dependencies among software modules. The relative risk of these dependencies is strongly related to the specific definition-use relationships. In a previous paper, we presented results from a longitudinal analysis of multiple versions of the open-source operating system Linux. This paper applies the new common coupling categorization to version 2.4.20 of Linux, counting the number of instances of common coupling between each of the 26 kernel modules and all the other nonkernel modules. We also categorize each coupling in terms of the definition-use relationships. Results show that the Linux kernel contains a large number of common couplings of all types, raising a concern about the long-term maintainability of Linux.  相似文献   

17.
Unlike monolithic kernels that must be relinked, reinstalled, and rebooted after every code change, the Linux kernel uses loadable modules to simplify and shorten development time, make dynamic configuration easier, and save kernel memory. The paper considers how new code Linux modules can be added dynamically to the kernel at runtime  相似文献   

18.
通用访问控制框架LSM的研究   总被引:2,自引:1,他引:2  
马桂媛  何大可 《微机发展》2004,14(7):73-75,108
由于用户安全需求的多样性与复杂性,如何构建一个支持多安全策略的访问控制框架成为操作系统安全的焦点。Linux安全模块是一种新的通用访问控制框架,它为用户定制自己的安全模块提供了一个通用接口。文中通过研究通用访问控制框架的发展历程,详细论述了LSM访问控制框架的原理,及如何在LSM下编写自己的安全模块。  相似文献   

19.
This paper presents a novel method to study Linux kernel evolution using complex networks.Having investigated the node degree distribution and average path length of the call graphs corresponding to the kernel modules of 223 different versions(V1.1.0 to V2.4.35),we found that the call graphs are scale-free and smallworld networks.Based on the relationship between average path length and nodes,we propose a method to find unusual points during Linux kernel evolution using the slope of the average path length.Using the unusual points we identify major structural changes in kernel modules.A stability coefficient is also proposed to describe quantitatively the stability of kernel modules during evolution.Finally,we verify our result through Vasa’s metrics method.  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

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