随笔分类 -  Linux内核开发

记录Linux内核开发相关内容 Kernel 4.4 Platform:FriendlyARM Smart4418
摘要:一、注册一个平台设备 方法1:platform_device_register 核心数据结构: 1 struct platform_device { 2 const char *name; 3 int id; 4 bool id_auto; 5 struct device dev; 6 u32 nu 阅读全文
posted @ 2019-04-04 20:21 一枚小苦工 阅读(1389) 评论(0) 推荐(0)
摘要:一、Linux定时器主要调用接口 1、定时器数据结构 1 struct timer_list { 2 /* 3 * All fields that change during normal runtime grouped to 4 * the same cacheline 5 */ 6 struct 阅读全文
posted @ 2019-03-16 14:41 一枚小苦工 阅读(3652) 评论(0) 推荐(1)