![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
内核开发
zhoukangli
一路向前,实践自己的梦想~
展开
-
gcc 中typeof的用法
Another way to refer to the type of an expression is with typeof. The syntax of using ofthis keyword looks like sizeof, but the construct acts semantically like a type name definedwith typedef.T翻译 2014-07-19 09:58:18 · 1073 阅读 · 0 评论 -
多核多线程开发时如何防止false sharing (from intel)
https://software.intel.com/en-us/articles/avoiding-and-identifying-false-sharing-among-threads/转载 2014-07-19 10:53:20 · 661 阅读 · 0 评论 -
Linux中的platform
总线设备驱动模型主要包含总线、设备、驱动三个部分,总线可以是一条真实存在的总线,例如USB、I2C等典型的设备。但是对于一些设备(内部的设备)可能没有现成的总线。Linux 2.6内核中引入了总线设备驱动模型。总线设备驱动模型与之前的三类驱动(字符、块设备、网络设备)没有必然的联系。设备只是搭载到了总线中。在linux内核中假设存在一条虚拟总线,称之为platform总线。platform总线相比转载 2014-08-11 14:55:50 · 695 阅读 · 0 评论 -
platform设备驱动
1.platform总线、设备与驱动在Linux 2.6的设备驱动模型中,关心总线、设备和驱动这3个实体,总线将设备和驱动绑定。在系统每注册一个设备的时候,会寻找与之匹配的驱动;相反的,在系统每注册一个驱动的时候,会寻找与之匹配的设备,而匹配由总线完成。一个现实的Linux设备和驱动通常都需要挂接在一种总线上,对于本身依附于PCI、USB、I2 C、SPI等的设备而言,这自然不是问转载 2014-08-11 14:57:24 · 522 阅读 · 0 评论 -
fl2440 开发板环境配置(仅供个人参考,记忆力不好)
samba启动:原创 2014-08-02 16:28:47 · 851 阅读 · 0 评论 -
/proc/N/maps 信息是如何生成的?
以进程1为例,查看proc长什么样子?127|shell@tiny4412:/proc/1 # ls -l dr-xr-xr-x root root 2014-01-01 12:07 attr-r-------- root root 0 2014-01-01 12:07 auxv-r--r--r-- root原创 2016-11-27 12:53:22 · 3374 阅读 · 0 评论