| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
MM_POOL_MANAGER feature, support mempool only for mm Signed-off-by: huojianchao <huojianchao@xiaomi.com> | 2 个月前 | |
MM_POOL_MANAGER feature, support mempool only for mm Signed-off-by: huojianchao <huojianchao@xiaomi.com> | 2 个月前 | |
fs/procfs: change procfs_register_meminfo to allocate entry dynamically Change procfs_meminfo_entry from embedded struct to dynamically allocated memory using kmm_zalloc/kmm_free. This prepares for adding reference counting in subsequent patches. Changes: 1. Update procfs_register_meminfo interface to accept individual parameters (name, heap, mallinfo handler, memdump handler) instead of a pre-filled entry struct, and return the allocated entry pointer. 2. Update procfs_unregister_meminfo to free the entry after removal. 3. Change mm_procfs field in all heap structures from embedded struct to pointer (struct procfs_meminfo_entry_s *mm_procfs). 4. Update all callers to use the new interface. 5. Add typedef for mm_mallinfo_handler_t and mm_memdump_handler_t. 6. Change the kmm and kumm initialize order, kmm should be intailized first to allow kmm_zalloc() when call kmm_initialize(). Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 |