摘要: [转自:http://blog.csdn.net/melong100/article/details/6329201首先声明,本文参考了网上很多CFS的文章,包括:《 使用完全公平调度程序(CFS)进行多任务处理》 --Avinesh Kumar《Linux进程管理之CFS组调度分析》 --ericxiaoInside the Linux 2.6 Completely Fair Scheduler --M. Tim Jones完全公平调度(CFS) --wxc200特对以上作者表示感谢我也就是怕自己忘了,记录一下,写着写着就想整理一下了,最后写了这么个东西,也不怎么浅显,但是笔... 阅读全文
posted @ 2013-04-25 16:31 Marineking 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 在学习Linux驱动的过程中,遇到一个宏叫做container_of。该宏定义在include/linux/kernel.h中,首先来贴出它的代码:/*** container_of - cast a member of a structure out to the containing structure* @ptr: the pointer to the member.* @type: the type of the container struct this is embedded in.* @member: the name of the member within the struc 阅读全文
posted @ 2013-03-29 22:54 Marineking 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 如果文件名包含在尖括号中,则C++编译器将在存储标准的头文件的主机系统的文件系统中查找;如果文件名包含在双引号中,则编译器将首先查找当前工作目录或源代码目录(或其他目录,这取决于编译器)。如果没有在那里找到头文件,则将在标准位子查找。因此在包含自己的头文件时,应使用引号而不是尖口号 阅读全文
posted @ 2012-02-19 20:05 Marineking 阅读(164) 评论(0) 推荐(0) 编辑