Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:43:58
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Initialisation. Called after the page allocator have been initialised and* before smp_init().

Proto:void __init kmem_cache_init(void)

Type:void

Parameter:Nothing

1244  kmem_cache = & rnal cache of cache description objs
1246  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_NUMA) || num_possible_nodes() == 1 Then By default on NUMA we use alien caches to stage the freeing of* objects allocated from other nodes = 0
1249  When i < Need this for bootstrapping a per node allocator. cycle kmem_cache_node_init( & init_kmem_cache_node[i])
1257  If Not slab_max_order_set && totalram_pages() > 32 << 20 >> PAGE_SHIFT determines the page size Then 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 * size of * , Align objs on cache lines , 0, 0)
1289  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
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)