09 2024 档案

内存管理-34-内存回收-shrinker的注册和调用
摘要:基于msm-5.4 一、简介 当存在内存压力时,会调用 shrinker 的 count_objects() 和 scan_objects() 进程内存回收操作。 二、注册逻辑 1. 注册 ashmem_init //ashmem.c register_shrinker(&ashmem_shrink 阅读全文

posted @ 2024-09-06 21:34 Hello-World3 阅读(94) 评论(0) 推荐(0) 编辑

文件系统-3-struct file结构
摘要:基于msm-5.4 一、struct file 定义 struct file { //fs.h union { struct llist_node fu_llist; struct rcu_head fu_rcuhead; } f_u; struct path f_path; struct inod 阅读全文

posted @ 2024-09-04 15:37 Hello-World3 阅读(76) 评论(0) 推荐(0) 编辑

内存管理-14-内核文档翻译-2-memory-allocation.rst 和 gfp_mask-from-fs-io.rst
摘要:一、memory-allocation.rst msm-5.4/Documentation/core-api/memory-allocation.rst 翻译: 内存分配指南 Linux 提供了各种用于内存分配的 API。您可以使用 `kmalloc()` 或 `kmem_cache_alloc() 阅读全文

posted @ 2024-09-02 20:32 Hello-World3 阅读(62) 评论(0) 推荐(0) 编辑

内存管理-33-GFP内存分配标志
摘要:基于msm-5.4 一、GFP分配标志 注: 这些标志为1表示功能是启用的。 1. 最初的纯整数 GFP 位掩码(不要直接使用) //include/linux/gfp.h #define ___GFP_DMA 0x01u #define ___GFP_HIGHMEM 0x02u #define _ 阅读全文

posted @ 2024-09-02 18:31 Hello-World3 阅读(270) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示