上一页 1 ··· 14 15 16 17 18
摘要: 由于Linux内核提供了PID,IPC,NS等多个Namespace,一个进程可能属于多个Namespace。为了task_struct的精简,内核引入了structnsproxy来统一管理进程所属的Namespace,在task_struct中只需存一个指向structnsproxy的指针就行了... 阅读全文
posted @ 2012-12-30 16:58 mull 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 内核中有这样一个宏:#defineBUILD_BUG_ON(condition)((void)sizeof(char[1-2*!!(condition)]))其作用是在编译的时候如果condition为真,则编译出错。即:如果condition为真则!condition为0;!!condition... 阅读全文
posted @ 2012-12-26 09:30 mull 阅读(190) 评论(0) 推荐(0) 编辑
摘要: __user&&address_space(1)分类:kernel2010-11-0607:421220人阅读评论(3)收藏举报所有的内核代码,基本都包含了linux/compile.h这个文件,所以它是基础,打算先分析这个文件里的代码看看,有空再分析分析其它的代码。首先印入眼帘的是对__ASSE... 阅读全文
posted @ 2012-12-26 09:24 mull 阅读(349) 评论(0) 推荐(0) 编辑
摘要: staticstructinet_protoswinetsw_array[]={{.type=SOCK_STREAM,.protocol=IPPROTO_TCP,.prot=&tcp_prot,.ops=&inet_stream_ops,.no_check=0,.flags=INET_PROTOS... 阅读全文
posted @ 2012-12-23 15:46 mull 阅读(533) 评论(0) 推荐(0) 编辑
摘要: hello_内核模块示例.tar.gz解压make出现以下报错make:***/lib/modules/2.6.24-26-server/build:Nosuchfileordirectory.Stop.解法:dpkg-ipool/main/l/linux/linux-headers-2.6.24... 阅读全文
posted @ 2012-12-21 12:27 mull 阅读(977) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18