函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-27 17:23:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:设置高速缓存

函数原型:void __init kmem_cache_init(void)

返回类型:void

参数:

4226  static __initdata struct kmem_cache boot_kmem_cache, boot_kmem_cache_node
4229  如果debug_guardpage_minorder()则slub_max_order等于0
4232  kmem_cache_node = & boot_kmem_cache_node
4233  kmem_cache = & boot_kmem_cache
4235  create_boot_cache(kmem_cache_node, "kmem_cache_node", kmem_cache_node的长度, Align objs on cache lines , 0, 0)
4238  register_hotmemory_notifier( & slab_memory_callback_nb)
4241  slab_state = SLUB: kmem_cache_node available
4243  create_boot_cache(kmem_cache, "kmem_cache", offsetof(structkmem_cache, node) + nr_node_ids * sizeof(structkmem_cache_node * ), Align objs on cache lines , 0, 0)
4248  kmem_cache = Used for early kmem_cache structures that were allocated using* the page allocator. Allocate them properly then fix up the pointers* that may be pointing to the wrong kmem_cache structure.
4249  kmem_cache_node = Used for early kmem_cache structures that were allocated using* the page allocator. Allocate them properly then fix up the pointers* that may be pointing to the wrong kmem_cache structure.
4252  setup_kmalloc_cache_index_table()
4253  create_kmalloc_caches(0)
4256  init_freelist_randomization()
4258  puhp_setup_state_nocalls - Setup hotplug state callbacks without calling the* callbacks*@state: The state for which the calls are installed*@name: Name of the callback
4261  打印信息("SLUB: HWalign=%d, Order=%u-%u, MinObjects=%u, CPUs=%u, Nodes=%u\n", cache_line_size(), Mininum / Maximum order of slab pages. This influences locking overhead* and slab fragmentation. A higher order reduces the number of partial slabs* and increases the number of allocations possible without having to* take the list_lock., slub_max_order, slub_min_objects, CPU数量, nr_node_ids)