
linux驱动
文章平均质量分 73
nicholas_duan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux-hexdump命令调试event驱动—详解(13)
2018-01-03阅读6300hexdump: 查看文件的内容,比如二进制文件中包含的某些字符串,通常用来调试驱动用描述:我们以event1为例,当我们insmod挂载了键盘驱动后,出现一个event1设备,此时没有按键按下,所以event1里面的数据是没有的,那么数据又是从来哪里来?通过键盘驱动的read函数,若有按键按下,就会上传按键数据给用户层hexdump因为键盘驱动的input_handler 是:evdev_handler所以键盘驱动的read函数是:ev...转载 2021-10-14 11:45:11 · 1133 阅读 · 0 评论 -
2021-08-06记录一下 ------网页在线查看linux,uboot,busybox源码
https://elixir.bootlin.com/linux/latest/source原创 2021-08-06 19:44:21 · 854 阅读 · 0 评论 -
mount挂载与umount卸载
mount挂载与umount卸载author:headsen chen 2017-10-23 15:13:51 个人原创,转载请注明作者,否则依法追究法律责任mount:挂载: eg : mount /dev/cdrom /mnt ------------------------ 挂载本地的光盘 mount -t nfs 192.168.1.2:/a /b --------------------...转载 2021-04-13 15:17:27 · 419 阅读 · 0 评论 -
linux下proc文件的读写(部分转载)
hnsncxy 2012-10-23 15:18:04 29629 已收藏 12分类专栏: linux驱动 文章标签: linux struct buffer file module版权in Linux,proc文件系统是一个虚拟文件系统,用户和应用程序可以通过proc文件系统得到当前的一些系统信息,并可以改变一些内核的参数。/proc下的文件是一种特殊文件,不能够像一般文件一样创建删除。如果要创建一个 proc 文件,并且不用 proc_fs 默认提供的 file_operation...转载 2021-04-08 21:00:53 · 2051 阅读 · 0 评论 -
i2cset - set I2C registers
bionic(8)i2cset.8.gzProvided by:i2c-tools_4.0-2_amd64NAME i2cset - set I2C registersSYNOPSIS i2cset [-f] [-y] [-m mask] [-r] i2cbus chip-address data-address [value] ... [mode] i2cset -VDESCRIPTION i2cse...原创 2021-04-02 13:48:01 · 1943 阅读 · 0 评论 -
i2cget - read from I2C/SMBus chip registers
bionic(8)i2cget.8.gzProvided by:i2c-tools_4.0-2_amd64NAME i2cget - read from I2C/SMBus chip registersSYNOPSIS i2cget [-f] [-y] i2cbus chip-address [data-address [mode]] i2cget -VDESCRIPTION i2cget is a...转载 2021-04-02 11:58:40 · 722 阅读 · 0 评论 -
i2ctool i2cget读取16位地址的寄存器值的方法
ASUS的i2cdetect tool放在device/asus/Z00L/i2c-tools目录下,用mmmdevice/asus/Z00L/i2c-tools就会生成相应的bin文件,push到机台的system/bin文件目录下root@ASUS_Z00L_63:/system/bin # ./i2cdetect -l i2c-0 i2c MSM-I2C-v2-adapter I2C adap...原创 2021-03-24 11:55:12 · 14318 阅读 · 0 评论 -
v4l2_buffer位域描述
3.5.Buffers Prev Chapter3.Input/Output Next 3.5.BuffersA buffer contains data exchanged by application and driver using one of the Streaming I/O methods. Only pointers to buffers are exchanged, the data itself is not copied. These pointer...原创 2021-02-26 11:13:36 · 844 阅读 · 0 评论 -
驱动模型匹配过程
#device方面:platform_device_register(struct platform_device *dev)------platform_device_add(pdev);----------device_add(&pdev->dev);--------------bus_probe_device(dev);-------------------device_attach(dev);-------------------------bus_for_each_dr.原创 2020-12-08 14:18:29 · 424 阅读 · 0 评论 -
Linux内核定时器
Linux内核定时器 一、Linux定时器主要调用接口1、定时器数据结构 1 struct timer_list { 2 /* 3 * All fields that change during normal runtime grouped to 4 * the same cacheline 5 */ 6 struct hlist_node entry; 7 unsigned long e转载 2020-08-13 17:44:09 · 443 阅读 · 0 评论 -
4. Linux - 输入子系统框架详解
输入子系统概述 Linux内核为了能够处理各种不同类型的输入设备,比如 触摸屏 ,鼠标 , 键盘 , 操纵杆 ,设计并实现了为驱动层程序的实现提供统一接口函数;为上层应用提供试图统一的抽象层 , 即是Linux 输入子系统 。输入子系统框架 从上图输入子系统的框架图,可以看出,输入子系统由Input driver(驱动层)、Input core(输入子系统核心)、Event handler(事件处理层)三部分组成。一个输入事件,如鼠标移动、键盘按下等通过I...转载 2020-07-25 14:30:02 · 622 阅读 · 0 评论