Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:33:42
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:assumes fs == KERNEL_DS

Proto:void __init numa_policy_init(void)

Type:void

Parameter:Nothing

2731  largest = 0
2732  prefer = 0
2734  policy_cache = kmem_cache_create - Create a cache.*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.*@align: The required alignment for the objects.*@flags: SLAB flags
2738  sn_cache = kmem_cache_create - Create a cache.*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.*@align: The required alignment for the objects.*@flags: SLAB flags
2742  for_each_node(nid)
2743  preferred_node_policy[nid] = (struct mempolicy){refcnt[nid] = Atomic operations that C can't guarantee us. Useful for* resource counting etc..(1), See MPOL_* above [nid] = MPOL_PREFERRED, See set_mempolicy() MPOL_F_* above [nid] = his policy wants migrate on fault | Migrate On protnone Reference On Node , v[nid] = {preferred_node = nid, }, }
2756  nodes_clear(interleave_nodes)
2757  for_each_node_state(nid, N_MEMORY)
2758  total_pages = node_present_pages(nid)
2761  If largest < total_pages Then
2762  largest = total_pages
2763  prefer = nid
2767  If total_pages << PAGE_SHIFT determines the page size >= 16 << 20 Then The inline keyword gives the compiler room to decide to inline, or* not inline a function as it sees best(nid, interleave_nodes)
2772  If Value for the false possibility is greater at compile time(nodes_empty(interleave_nodes)) Then The inline keyword gives the compiler room to decide to inline, or* not inline a function as it sees best(prefer, interleave_nodes)
2775  If Set the process memory policy Then pr_err("%s: interleaving failed\n", __func__)
2778  check_numabalancing_enable()