- 博客(4)
- 资源 (10)
- 收藏
- 关注
原创 kernel 中的__maybe_unused
#define __always_unused attribute((unused))#define __maybe_unused attribute((unused))这个定义主要是当用__maybe_unused定义的变量时,这个变量没有任何code用到,编译器也不会报错.
2021-07-27 11:24:01 2593
转载 Struct内存对齐
内存对齐的原因:1)某些平台只能在特定的地址处访问特定类型的数据;2)提高存取数据的速度。比如有的平台每次都是从偶地址处读取数据,对于一个int型的变量,若从偶地址单元处存放,则只需一个读取周期即可读取该变量;但是若从奇地址单元处存放,则需要2个读取周期读取该变量。...
2021-04-27 17:12:13 151
原创 获取手机中dts
获取手机中dts1.pull 出来手机的dtbadb pull /sys/firmware/fdt2.把dtb转成dts./script/dtc/dtc_overlay -I dtb -O dts -o output.dts fdt
2020-12-08 18:01:12 1113
原创 kernel 中的__read_mostly
read_mostly使用作用使用//结构体struct cgroup_subsys memory_cgrp_subsys __read_mostly;//指针struct mem_cgroup *root_mem_cgroup __read_mostly;//数值int do_swap_account __read_mostly;作用会将这些带__read_mostly的变量放入.data…read_mostly这个section中,这个主要在编译的链接阶段起作用,在链接时会把这些值
2020-08-07 09:55:24 233
bq24195 data sheet
2018-06-07
Binder深入讲解__底层_内核实现
2018-06-07
64-ia-32-architectures-software-developer-vol-3c-part-3-manual.pdf
2018-06-07
64-ia-32-architectures-software-developer-vol-3b-part-2-manual.pdf
2018-06-07
64-ia-32-architectures-software-developer-vol-3a-part-1-manual.pdf
2018-06-07
64-ia-32-architectures-software-developer-vol-2a-manual.pdf
2018-06-07
ALC5640 DataSheet_0.95
2018-06-07
Simple Firmware Interface
2018-06-07
Advanced Configuration and Power Interface Specification
2018-06-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人