当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 阅读笔记:如何给OpenSolaris增加一个系统调用 原作者
 

 

    摘要:如题第十七章 configuring the custom jumpstart procedure 用jumpstart方法安装的好处在于: 1,避免了交互式安装时候的一问一答模式 2,系统管理员可以同时安装不同类型的系统 3,允许自动安装solaris 9和软件 4,使管理员工作简单化 四个重要部分是:boot services,identification services,con......
 ·sa299第二遍复习(13-16章)    »显示摘要«
    摘要:如题第十三章 configuring system messaging/etc/syslog.conf文件包含两部分:selector,action.其中selector包含两部分facility和level.例如:文件/var/adm/messages中的条目*.err /var/adm/messages."*.err"表示selector,*表示facility,err表示......


阅读笔记:如何给OpenSolaris增加一个系统调用

阅读笔记:如何给opensolaris增加一个系统调用

【程序编程相关:SA239第6章读书笔记

【推荐阅读:SA239第8章读书笔记

原作者: eric schrock 原文来自: http://blogs.sun.com/roller/page/eschrock 【扩展信息:SA239第4章读书笔记

译注者: badcoffee email: blog.oliver@gmail.com

blog: http://blog.csdn.net/yayong 2005年7月

按:给操作系统增加系统一个简单的系统调用是熟悉os的内核代码的一个好方法,本文给出了在solaris内核中增加一个系统调用的基本步骤.

how to add a system call to opensolaris

when i first started in the solaris group, i was faced with two equally difficult tasks: learning the development model, and understanding the source code. for both these tasks, the recommended method is usually picking a small bug and working through the process. for the curious, the first bug i putback to on was 4912227 (ptree call returns zero on failure), a simple bug with near zero risk. it was the first step down a very long road.

as a another first step, someone suggested adding a very simple system call to the kernel. this turned out to be a whole lot harder than one would expect, and has so many subtle(细微的) aspects(方面) that experienced solaris engineers (myself included) still miss some of the necessary changes. with that in mind, i thought a reasonable first opensolaris blog would be describing exactly how to add a new system call to the kernel.

for the purposes of this post, we will assume that its a simple system call that lives in the generic kernel code, and well put the code into an existing file to avoid having to deal with makefiles. the goal is to print an arbitrary(随意的) message to the console whenever the system call is issued.

注:

1. 做solaris开发面临2个难题,一个是需要了解solaris开发的模式,或者说是process上的东西;而另一个就是理解solairs源代码 了.
...   下一页
 ·sa299第二遍复习(9-12章)    »显示摘要«
    摘要:如题第九章 configuring solaris volume manager software用metadb命令创建状态数据库,语法结构是:metadb -a [-f] [-c n] [-l nnnn] disk_slice-a表示添加一个state database replica-f表示强制性执行创建状态数据库的操作-c n表示要添加的replicas的数量-l nnnn表示新replic......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE