上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 71 下一页

2021年12月23日

Linux驱动中继承与多态思想_C

摘要: 一、函数实现多态 1. 定义全局模板函数集 //thermal_of.c static struct thermal_zone_device_ops of_thermal_ops = { .get_trip_type = of_thermal_get_trip_type, .get_trip_tem 阅读全文

posted @ 2021-12-23 17:16 Hello-World3 阅读(323) 评论(0) 推荐(0)

2021年12月22日

attribute section 属性

摘要: 一、__attribute__((__section__(section_name))) 简介 1. __attribute__((section("name"))) 是gcc编译器支持的一个编译特性(arm编译器也支持此特性),实现在编译时把某个函数/数据放到名为name的数据段中。原理如下:(1 阅读全文

posted @ 2021-12-22 22:22 Hello-World3 阅读(6744) 评论(0) 推荐(0)

2021年12月13日

使用二级指针辅助遍历的单链表

摘要: 1. 代码 #include <stdio.h> #include <stddef.h> struct notifier_block { struct notifier_block *next; int priority; }; struct notifier_block *head = NULL; 阅读全文

posted @ 2021-12-13 13:07 Hello-World3 阅读(91) 评论(0) 推荐(0)

数据结构——TODO

摘要: llist --done hlist --应该就是单链表吧 plist --done xarray ida idr rculist rculist.h 阅读全文

posted @ 2021-12-13 12:44 Hello-World3 阅读(95) 评论(0) 推荐(0)

2021年12月9日

调度器26—Linux内核中的各种时间频率

摘要: 一、各种时间的打印 1. per-cpu的各种类型的使用时间 # ls -l /proc/stat -r--r--r-- 1 root root 0 2021-01-01 19:46 /proc/stat # cat /proc/stat cpu 203632 46353 386930 318155 阅读全文

posted @ 2021-12-09 11:33 Hello-World3 阅读(1782) 评论(0) 推荐(0)

2021年12月8日

VFS虚拟文件系统

摘要: 一、VFS简介 Linux 采用 Virtual Filesystem(VFS)的概念,通过内核在物理存储介质上的文件系统和用户之间建立起一个虚拟文件系统的软件抽象层,使得 Linux 能够支持目前绝大多数的文件系统,不论它是 windows、unix 还是其他一些系统的文件系统,都可以挂载在 Li 阅读全文

posted @ 2021-12-08 11:24 Hello-World3 阅读(1472) 评论(0) 推荐(0)

给Linux内核提交代码

摘要: 参考: 给Linux内核提交代码: https://wushifublog.com/2020/01/29/%E7%BB%99Linux%E5%86%85%E6%A0%B8%E6%8F%90%E4%BA%A4%E4%BB%A3%E7%A0%81/ 阅读全文

posted @ 2021-12-08 10:37 Hello-World3 阅读(209) 评论(0) 推荐(0)

2021年11月30日

内存管理-31-系统内存统计-5-procrank与procmem

摘要: 一、VSS/RSS/PSS/USS的区别 1. VSS Virtual Set Size 虚拟耗用内存(包含共享库占用的内存)VSS表示一个进程可访问的全部内存地址空间的大小。这个大小包括了进程已经申请但尚未使用的内存空间。在实际中很少用这种方式来表示进程占用内存的情况,用它来表示单个进程的内存使用 阅读全文

posted @ 2021-11-30 20:07 Hello-World3 阅读(2564) 评论(0) 推荐(0)

2021年11月24日

Linux Thermal 学习笔记

摘要: 一、thermal 模块简介 1. 核心为 thermal_core。可以获取温度的设备抽象为 thermal_zone_device, 如Temp Sensor、NTC(板上的热敏电阻)等。控制温度的设备抽象为 thermal_cooling_device, 如风扇、CPU、DDR、GPU等。温控 阅读全文

posted @ 2021-11-24 21:08 Hello-World3 阅读(11293) 评论(0) 推荐(1)

2021年11月20日

HIDL学习笔记_3

摘要: HIDL系列四 绑定式的案例及理解(多篇): https://chendongqi.me/2019/09/08/hidl-binderizd/Android Treble 架构下的HIDL:https://ruleizhou.github.io/2019/07/25/Android-Treble-% 阅读全文

posted @ 2021-11-20 14:37 Hello-World3 阅读(255) 评论(0) 推荐(0)

上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 71 下一页

导航