函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:17:48
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:设置高速缓存

函数原型:void __init kmem_cache_init(void)

返回类型:void

参数:

1244  kmem_cache = & rnal cache of cache description objs
1246  如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_NUMA)或num_possible_nodes()恒等于1则By default on NUMA we use alien caches to stage the freeing of* objects allocated from other nodes等于0
1249 i小于Need this for bootstrapping a per node allocator.循环kmem_cache_node_init( & init_kmem_cache_node[i])
1257  如果非slab_max_order_settotalram_pages()大于32左移20位右移PAGE_SHIFT determines the page size 位则slab_max_order等于Do not go above this order unless 0 objects fit into the slab or* overridden on the command line.
1285  create_boot_cache(kmem_cache, "kmem_cache", offsetof(structkmem_cache, node) + nr_node_ids * *的长度, Align objs on cache lines , 0, 0)
1289  添加链表项
1290  memcg_link_cache(kmem_cache, NULL)
1291  slab_state = SLUB: kmem_cache_node available
1297  kmalloc_caches[KMALLOC_NORMAL][INDEX_NODE]等于create_kmalloc_cache(name[KMALLOC_NORMAL], size, ARCH_KMALLOC_FLAGS, 0, size)
1302  slab_state = SLAB: kmalloc size for node struct available
1303  setup_kmalloc_cache_index_table()
1305  slab_early_init等于0
1319  create_kmalloc_caches(ARCH_KMALLOC_FLAGS)