摘要: https://www.cnblogs.com/zhangpengshou/p/3587751.html http://m.elecfans.com/article/663750.html https://www.cnblogs.com/LiuYanYGZ/p/5548855.html https: 阅读全文
posted @ 2019-02-14 12:04 biaohc 阅读(8045) 评论(0) 推荐(0) 编辑
摘要: rpm下安装quota rpm-ivhquota-2.00pre3-7.i386.rpm ubuntu下安装quota apt-get install quota 输入:mount|grep /dev/sda2就会显示sda2挂载的地方 Linux中的根目录以外的文件要想被访问,需要将其“关联”到根 阅读全文
posted @ 2019-01-21 13:37 biaohc 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 一:机制与策略(转) http://www.51hei.com/bbs/dpj-29441-1.html 机制mechanism,策略policy。如果你看过《linux device drivers》,里面给出了大概的介绍。机制提供了干什么(do what),策略提供如何做(how to do)。 阅读全文
posted @ 2017-04-08 16:48 biaohc 阅读(1710) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.360doc.com/content/12/0723/00/9298584_225900606.shtml http://www.cnblogs.com/biyeymyhjob/archive/2012/07/21/2602015.html http://blog.ch 阅读全文
posted @ 2017-04-08 10:28 biaohc 阅读(5422) 评论(0) 推荐(0) 编辑
摘要: 1:什么是misc驱动模型? 2:为什么要有misc驱动模型? 3:misc驱动模型的代码实现 4:misc驱动模型实战 参考: http://blog.csdn.net/yicao821/article/details/6785738 http://www.thinksaas.cn/topics/ 阅读全文
posted @ 2017-04-07 14:38 biaohc 阅读(1500) 评论(0) 推荐(0) 编辑
摘要: 参考: http://blog.csdn.net/qq_28992301/article/details/52385518 http://blog.csdn.net/zoe6553/article/details/6372445 http://blog.chinaunix.net/uid-25014 阅读全文
posted @ 2017-04-07 09:04 biaohc 阅读(7449) 评论(0) 推荐(0) 编辑
摘要: GNU C 的一大特色就是__attribute__ 机制。__attribute__ 可以设置函数属性(Function Attribute )、变量属性(Variable Attribute )和类型属性(Type Attribute )。 __attribute__ 书写特征是:__attri 阅读全文
posted @ 2017-04-05 11:18 biaohc 阅读(695) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/xiahouzuoxin/article/details/8943863 http://blog.chinaunix.net/uid-25627207-id-3343854.html http://blog.csdn.net/phunxm/article/d 阅读全文
posted @ 2017-04-05 09:53 biaohc 阅读(954) 评论(0) 推荐(1) 编辑
摘要: 恢复内容开始 1:什么是gpiolib,为什么要有gpiolib? linux中从2.6.35以后就开始有gpiolib库了,gpiolib的作用是对所有的gpio实行统一管理,因为驱动在工作的时候,会出现好几个驱动共同使用同一个gpio的情况; 这会造成混乱。所以内核提供了一些方法来管理gpio资 阅读全文
posted @ 2017-04-04 09:01 biaohc 阅读(6789) 评论(0) 推荐(0) 编辑
摘要: 1:在linux2.6板本内核开发人员开始建立驱动框架,以led驱动为例: 没有驱动框架的时候我们需要做一下事情: module_init: 1:alloc_chrdev_region 注册字符驱动 2:cdev_alloc、cdev_init、cdev_add来向内核中添加驱动; 3:class_ 阅读全文
posted @ 2017-03-31 11:53 biaohc 阅读(1838) 评论(0) 推荐(0) 编辑