摘要: uart registers I/O portRead (DLAB=0)Write (DLAB=0)Read (DLAB=1)Write (DLAB=1) base RBR receiver buffer THR transmitter holding DLL divisor latch LSB D 阅读全文
posted @ 2023-07-29 16:48 aspirs 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 判断指令类型aarch64_insn_is_##abbr(u32 code) @code为32bit的asm指令 kernel\5.15\arch\arm64\include\asm\insn.h #define __AARCH64_INSN_FUNCS(abbr, mask, val) \ sta 阅读全文
posted @ 2023-07-02 21:13 aspirs 阅读(35) 评论(0) 推荐(0) 编辑
摘要: ext4 fs end io callback(mpage_end_io) mpage_end_io+0x0/0x1c8 bio_endio+0x1cc/0x22c blk_update_request+0x1e8/0x484 mmc_blk_mq_complete_rq+0x28/0xb0 mmc 阅读全文
posted @ 2023-06-28 20:08 aspirs 阅读(22) 评论(0) 推荐(0) 编辑
摘要: dma基础_一文读懂dma的方方面面 https://zhuanlan.zhihu.com/p/413978652 阅读全文
posted @ 2023-06-03 20:18 aspirs 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1. page add to bio int f2fs_submit_page_bio(struct f2fs_io_info *fio) /* Allocate a new bio */ bio = __bio_alloc(fio, 1); if (bio_add_page(bio, page, 阅读全文
posted @ 2023-06-03 12:09 aspirs 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 关于O_CLOEXEC模式打开的文件描述符,我也不做什么过多解释了,大家只要知道进程调用exec时会关闭O_CLOEXEC模式打开的文件描述符就行了。 其中U_BOOT_CMD命令格式如下: U_BOOT_CMD(name,maxargs,rep,cmd,usage,help) 各个参数的意义如下: 阅读全文
posted @ 2023-05-23 14:27 aspirs 阅读(20) 评论(0) 推荐(0) 编辑
摘要: android OTA升级(VAB分区) 升级开始前,升级程序update_engine将要升级的slot标记为unsuccessful,调用boot_ctl的SetSlotAsUnbootable() hardware/interfaces/boot/1.1/default/boot_contro 阅读全文
posted @ 2023-04-23 11:55 aspirs 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 系统iowait和线程的iowait 系统iowait时间统计 在系统时钟中断时,会调用account_process_tick,如果是user tick,则增加user time;否则如果current线程不是idle,则增加system time;否则增加idle时间,idle可以再分为iowa 阅读全文
posted @ 2023-04-15 16:42 aspirs 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 改code方式修改logcat buffer size 比如加在device下的device.mk里: PRODUCT_PROPERTY_OVERRIDES += \ ro.logd.size=5M 设置各种buffer size(main/system/crash) system/core/log 阅读全文
posted @ 2023-02-11 22:14 aspirs 阅读(84) 评论(0) 推荐(0) 编辑
摘要: page cache 往bdi_writeback的b_dirty链表上插入node(inode.i_io_list) __set_page_dirty_nobuffers()里调用__mark_inode_dirty(I_DIRTY_PAGES),这个函数里将此inode的i_state或上I_D 阅读全文
posted @ 2023-01-28 23:27 aspirs 阅读(56) 评论(0) 推荐(0) 编辑