随笔分类 -  driver

摘要:转自:http://blog.csdn.net/ztguang/article/details/52856076 trip: libpagemap_32 (out/target/product/xx/obj_arm/lib/libpagemap.so)target Strip: librilutil 阅读全文
posted @ 2018-02-09 10:00 随风飘落的雨滴 阅读(1045) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.chinaunix.net/uid-20672257-id-3147337.html 一、kobject的定义:kobject是Linux2.6引入的设备管理机制,在内核中由struct kobject结构表示,这个结构使所有设备在底层都具有统一的接口.kobject提 阅读全文
posted @ 2016-12-27 13:27 随风飘落的雨滴 阅读(462) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.ibm.com/developerworks/cn/linux/l-cn-kernelmodules/ 为保持 Linux 内核的稳定与可持续发展,内核在发展过程中引进了可装载模块这一特性。内核可装载模块就是可在内核运行时加载到内核的一组代码。通常 , 我们会在两个版本不 阅读全文
posted @ 2016-12-26 20:05 随风飘落的雨滴 阅读(2520) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.csdn.net/cailiwei712/article/details/7998525 在查看内核驱动代码的时候会经常看到在一些函数后面总会跟EXPORT_SYMBOL()这样的宏定义,通过网上查阅,它的作用大致总结如下: 1、定义说明 把内核函数的符号导出,也可以理 阅读全文
posted @ 2016-12-26 20:04 随风飘落的雨滴 阅读(752) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.wowotech.net/linux_kenrel/uevent.html 1. Uevent的功能 Uevent是Kobject的一部分,用于在Kobject状态发生改变时,例如增加、移除等,通知用户空间程序。用户空间程序收到这样的事件后,会做相应的处理。 该机制通常是 阅读全文
posted @ 2016-12-24 16:08 随风飘落的雨滴 阅读(281) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.chinaunix.net/uid-29165999-id-4296162.html #define GPIO_MAJOR 230 // major device NO.#define GPIO_MINOR 0 // minor device NO.#define DE 阅读全文
posted @ 2016-09-21 18:34 随风飘落的雨滴 阅读(1972) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.csdn.net/mirkerson/article/details/8464290 一 概述 Linux内核中gpio是最简单,最常用的资源(和 interrupt ,dma,timer一样)驱动程序,应用程序都能够通过相应的接口使用gpio,gpio使用0~MAX_ 阅读全文
posted @ 2016-09-20 22:02 随风飘落的雨滴 阅读(9327) 评论(0) 推荐(0) 编辑
摘要:1.查看当前的设备 dev/input/ 2.查看设备的名称 cat /proc/bus/input/devices 阅读全文
posted @ 2016-09-12 19:30 随风飘落的雨滴 阅读(2743) 评论(0) 推荐(0) 编辑
摘要:linux usb 驱动详解 一 http://blog.163.com/cl2006ky@126/blog/static/87195173201131245557340/ USB设备驱动开发-USB Gadget Driver(一) http://blog.chinaunix.net/uid-14 阅读全文
posted @ 2016-08-14 22:56 随风飘落的雨滴 阅读(148) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=21977330&id=3755609 在linux里,中断处理分为顶半(top half),底半(bottom half),在顶半里处理优先级比较高的事情,要求占用中断时间尽量的短 阅读全文
posted @ 2016-07-01 10:03 随风飘落的雨滴 阅读(11421) 评论(0) 推荐(1) 编辑
摘要:转自:http://blog.chinaunix.net/uid-25445243-id-4052877.html 一、中断申请和释放函数1.1、申请函数 在linux内核中用于申请中断的函数是request_irq(),函数原型在Kernel/irq/manage.c中定义: int reques 阅读全文
posted @ 2016-06-28 11:27 随风飘落的雨滴 阅读(628) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.ibm.com/developerworks/cn/linux/l-cn-linuxkernelint/index.html#resources Linux 内核中断内幕 转自:http://www.ibm.com/developerworks/cn/linux/l-cn 阅读全文
posted @ 2016-06-25 13:32 随风飘落的雨滴 阅读(465) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.csdn.net/zhandoushi1982/article/details/5130207 做Linux方面也有三个多月了,对代码中的有些结构一直不是很明白,比如platform_device与platform_driver一直分不清关系。在网上搜了下,做个总结。两 阅读全文
posted @ 2016-06-24 15:27 随风飘落的雨滴 阅读(244) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.chinaunix.net/uid-25014876-id-90740.html xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 一、什么是中断 阅读全文
posted @ 2016-06-14 19:28 随风飘落的雨滴 阅读(516) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.sina.com.cn/s/blog_693301190100sxoi.html obj-m (转帖) 转自:http://blog.sina.com.cn/s/blog_693301190100sxoi.html obj-m (转帖) 目标定义是Kbuild Make 阅读全文
posted @ 2016-06-07 14:46 随风飘落的雨滴 阅读(2800) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.csdn.net/ruglcc/article/details/7814546/ makefile很重要 什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和profession 阅读全文
posted @ 2016-06-07 13:38 随风飘落的雨滴 阅读(340) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.eefocus.com/jefby1990/blog/13-02/291628_c39b8.html 本文是参考了网上多篇帖子而写的算不上什么原创。唯一值得欣慰的只不过在本机上实现罢了。因为毕竟失败了几次。也因为本人是初学驱动编程 很多简单的问题在我来说是相当的困难的。望 阅读全文
posted @ 2016-06-03 10:33 随风飘落的雨滴 阅读(1106) 评论(0) 推荐(0) 编辑