
Linux内核相关
阿常啊
这个作者很懒,什么都没留下…
展开
-
Linux输入子系统---gpio_keys流程分析
Linux输入子系统是内核中很常用的系统,内核里面已经包含了一些鼠标、键盘、按键、触摸屏等一系列驱动代码,本章我们分析一下内核中gpio_keys的代码流程。原创 2022-07-13 11:38:44 · 1004 阅读 · 1 评论 -
Linux内核--DEVICE_ATTR
内核版本:v4.14简介在我们调试或者使用内核驱动时,有时候需要动态设置或读取驱动的参数或属性,此时我们就可以使用DEVICE_ATTR创建一个节点,通过在这个节点写入或者读取来实现上诉功能。DEVICE_ATTR定义#define DEVICE_ATTR(_name, _mode, _show, _store)_name : 定义的节点名称_mode : 节点访问权限,类似于0644_show : cat节点时的回调函数_store : echo节点时候的回调函数内核定义#defin原创 2022-05-30 09:49:11 · 1032 阅读 · 0 评论 -
Linux内核--定时器
内核版本:v4.14相关结构体:struct timer_list { /* * All fields that change during normal runtime grouped to the * same cacheline */ struct hlist_node entry; unsigned long expires; void (*function)(unsigned long); unsigned long data; u32 flags;#.原创 2022-05-27 20:17:38 · 389 阅读 · 0 评论