
Linux Kernel
user_920
这个作者很懒,什么都没留下…
展开
-
kernel networking两个重要结构体
在Linux kernel network layer两个最重要的结构体: 1、sk_buff (defined in include/linux/skbuff.h) 2、netdevice (defined in include/linux/netdevice.h) sk_buff represents data and headers. net_device r原创 2013-10-12 15:24:03 · 965 阅读 · 0 评论 -
网络数据通过内核图1
以上图片来自Google图片原创 2013-10-12 15:38:20 · 915 阅读 · 0 评论 -
网络数据通过内核图2
network data flow through kernel 图片来自Google图片原创 2013-10-12 15:47:06 · 752 阅读 · 0 评论 -
Big Plan
大的梦想, 从今天(2013-09-27)起开始学习Linux Kernel, 坚持,加油!原创 2013-09-27 13:39:57 · 802 阅读 · 0 评论 -
内核中的likely()和unlikely()
内核2.6的代码里经常看到下面两个函数: if(likely(value)) 等价于 if(value) if(unlikely(value)) 也等价于 if(value) 这个两个宏在内核中定义是: #define likely(x) __builtin_expect((x),1) #define unlikely(x) __bu原创 2013-11-28 15:20:14 · 738 阅读 · 0 评论 -
linux cfs调度器 理论模型
参考资料:《调度器笔记》Kevin.Liu 《Linux kernel development》 《深入Linux内核架构》 version: 2.6.32.9 下文中对于红黑树或链表组织的就绪队列,统称为用队列组织的就绪队列。转载 2013-12-02 11:25:55 · 697 阅读 · 0 评论 -
linux kernel内核开发参考网站
1、Becoming A Kernel Developer http://kernelnewbies.org/ 2、如何进行Linux Kernel开发 http://www.cppblog.com/flyonok/archive/2011/04/15/144316.html原创 2013-09-27 13:45:59 · 1083 阅读 · 0 评论 -
linux kernel typeof container_of
最近发现两个非常牛的宏: #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) /** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member原创 2014-01-16 15:11:29 · 740 阅读 · 0 评论