Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-28 15:49:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kmem_cache_init

Proto:void __init kmem_cache_init(void)

Type:void

Parameter:Nothing

4226  static __initdata struct kmem_cache boot_kmem_cache, boot_kmem_cache_node
4229  If debug_guardpage_minorder() Then 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", size of 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  pr_info("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, Setup number of possible processor ids , nr_node_ids)