上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: include/linux/platform_device.h#define PLATFORM_DEVID_NONE (-1)#define PLATFORM_DEVID_AUTO (-2)drivers/base/platform.c/** * platform_device_add - add a platform device to device hierarchy * @pdev: platform device we're adding * * This is part 2 of platform_device_register(), though may be call.. 阅读全文
posted @ 2014-02-27 21:36 baihuahua 阅读(2015) 评论(0) 推荐(0) 编辑
摘要: pci_device_id,PCI设备类型的标识符。在include/linux/mod_devicetable.h头文件中定义。struct pci_device_id { __u32 vendor, device; /* Vendor and device ID or PCI_ANY_ID*/ __u32 subvendor, subdevice; /* Subsystem ID's or PCI_ANY_ID */ __u32 class, class_mask; /* (class,subclass,prog-if) triplet */ kernel_ulong_t d... 阅读全文
posted @ 2014-02-23 22:15 baihuahua 阅读(2388) 评论(0) 推荐(0) 编辑
摘要: shift运行后,$#随之减少;如果需要知道命令行中输入的最后一个参数(通常是一个文件名),可以有两种选择:使用命令 eval echo \$$#;使用shift命令:shift 'expr $# - 2'。getopts 选项字符串 名称 [参数表]每次使用时,getopts 都会把下一个选项放在shell变量名称中(如果名称不存在就初始化它),并把下一个要处理的参数的下标放在变量 OPTIND 中。如果某个选项需要参数,getopts 就把该参数放在变量 OPTARG 中。Shell不会自动把 OPTIND 重置;如果在同一个shell中多次调用 getopts 时要使用新 阅读全文
posted @ 2014-02-17 20:42 baihuahua 阅读(301) 评论(0) 推荐(0) 编辑
摘要: $ git commit -awhich will automatically notice any modified (but not new) files, add them to the index, and commit, all in one step.A note on commit messages: Though not required, it’s a good idea to begin the commit message with a single short (less than 50 character) line summarizing the change, f 阅读全文
posted @ 2014-02-17 20:39 baihuahua 阅读(459) 评论(0) 推荐(0) 编辑
摘要: How to Get Your Change Into the Linux Kernel or Care And Operation Of Your Linus TorvaldsFor a person or company who wishes to submit a change to the Linuxkernel, the process can sometimes be daunting if you're not familiarwith "the system." This text is a collection of suggestions whi 阅读全文
posted @ 2014-02-10 21:14 baihuahua 阅读(449) 评论(0) 推荐(0) 编辑
摘要: gitworkflows(7) Manual PageNAMEgitworkflows - An overview of recommended workflows with GitSYNOPSISgit *DESCRIPTIONThis document attempts to write down and motivate some of the workflow elements used forgit.gititself. Many ideas apply in general, though the full workflow is rarely required for small 阅读全文
posted @ 2014-02-10 16:43 baihuahua 阅读(192) 评论(0) 推荐(0) 编辑
摘要: http://baike.baidu.com/view/167703.htmPA-RISC处理器编辑HP(惠普)公司的RISC芯片PA-RISC于1986年问世。第一款芯片的型号为PA-8000,主频为180MHz,后来陆续推出PA—8200、PA-8500和PA-8600等型号。HP公司开发的64位微处理器PA-8700于2001年上半年正式投入服务器和工作站的使用。这种新型处理器的设计主频达到800MHz以上。PA-8700使用的工艺是0.18微米SOI铜CMOS工艺,采用7层铜导体互连,芯片上的高速成缓存达到2.25MB,比PA-8600增加了50%。HP公司陆续推出PA-8800和PA 阅读全文
posted @ 2014-02-08 22:28 baihuahua 阅读(597) 评论(0) 推荐(0) 编辑
摘要: http://rails-deployment.group.iteye.com/group/wiki/1318-diff-and-patch-10-minutes-guide情景一:你正尝试从代码编译一个软件包,发现有人已经对代码进行了小小的修改以便在你的系统上编译。他们通过补丁的方式发布自己的成果,但是你却不知道该如何使用它。答案是你使用一个叫做patch(很贴切)的命令行工具将补丁应用到原始代码上。情景二:你下载了一个开源软件包的代码,花了一个小时左右稍作修改,成功的让它在你的系统上编译通过。你想把自己的成果分享给其他程序员,或者给软件包的作者。现在你就需要创建自己的补丁,你需要的工具是d 阅读全文
posted @ 2014-01-26 17:30 baihuahua 阅读(436) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/sosodream/article/details/5683515实例解析shell子进程(subshell )通过实例,解析个人对shell子进程的一个了解,主要包括以下几个方面1:什么是shell子进程2:shell什么情况下会产生子进程3:子进程的特点与注意事项4:$变量$$在脚本里的意义,及如何得到子进程里的进程号参考文档:apue,bash的man和info文档1:什么是shell子进程子进程,是从父子进程的概念出发的,unix操作系统的进程从init进程开始(init进程为1,而进程号0为系统原始进程,以下讨论的进程原则上不包括进程0)均有 阅读全文
posted @ 2014-01-23 20:17 baihuahua 阅读(2096) 评论(0) 推荐(0) 编辑
摘要: http://fyan.iteye.com/blog/1172279tr是translate的简写,亦即翻译,但是遗憾的是,它不能翻译句子,只能翻译单个字符。1 tr的工作原理是什么?先记住一点,tr命令不接受指定的文件参数,而只是对标准输入进行翻译。好了,记住这点后,我们继续。tr的命令格式是tr SET1 SET2,凡是在SET1中的字符,都会被替换为SET2中相应位置上的字符,简单吧!2 举个例子吧!tr的例子其实都大同小异,看一个最简单的例子:我们有一个包含了四个人身高的数据文件,名字叫height.txt,它的内容是这样的:[rocrocket@rocrocket programmi 阅读全文
posted @ 2014-01-23 16:11 baihuahua 阅读(909) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页