michile

导航

上一页 1 2 3 4 5 6 7 ··· 12 下一页

2013年2月16日

linux字符设备驱动之LED

摘要: 比较好的一个参考:http://www.cnblogs.com/myblesh/articles/2367520.html 阅读全文

posted @ 2013-02-16 11:16 michile 阅读(160) 评论(0) 推荐(0) 编辑

关于程序堆栈的解释

摘要: http://www.cnblogs.com/myblesh/archive/2012/03/14/2396409.html 主要在于系统分配和用户自己分配的区别,另外在运行时进入内存的叫栈,而编译器编译好的直接加载到内存的是堆 阅读全文

posted @ 2013-02-16 11:08 michile 阅读(819) 评论(0) 推荐(0) 编辑

linux下ioctl函数学习

摘要: 一、 什么是ioctl。ioctl是设备驱动程序中对设备的I/O通道进行管理的函数。所谓对I/O通道进行管理,就是对设备的一些特性进行控制,例如串口的传输波特率、马达的转速等等。它的调用如下:int ioctl(int fd, ind cmd, …);其中fd就是用户程序打开设备时使用open函数返回的文件标示符,cmd就是用户程序对设备的控制命令,至于后面的省略号,那是一些补充参数,一般最多一个,有或没有是和cmd的意义相关的。ioctl函数是文件结构中的一个属性分量,就是说如果你的驱动程序提供了对ioctl的支持,用户就可以在用户程序中使用ioctl函数控制设备的I/O通道。二、 ioct 阅读全文

posted @ 2013-02-16 10:52 michile 阅读(570) 评论(0) 推荐(0) 编辑

2013年2月7日

Some Important Data Structures

摘要: 记得曾经看过一点国嵌的驱动开始视频:原来他们的讲义就是这个模子的 幸好没有去报什么驱动开始班 其实自己这样看下来提高的不只是知识 还有以后学习的能力As you can imagine, device number registration is just the first of many tasks that driver code must carry out. We will soon look at other important driver components, but one other digression is needed first. Most of the fun. 阅读全文

posted @ 2013-02-07 17:26 michile 阅读(257) 评论(0) 推荐(0) 编辑

Major and Minor Numbers (主次设备号)--这个听说过

摘要: Char devices are accessed through names in the filesystem. Those names are called special files or device files or simply nodes of the filesystem tree; they are conventionally located in the /dev directory. Special files for char drivers are identified by a "c" in the first column of the o 阅读全文

posted @ 2013-02-07 17:10 michile 阅读(2238) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 12 下一页