函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:06:56
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:初始化NUMA的内存访问策略

函数原型:void __init numa_policy_init(void)

返回类型:void

参数:

2731  largest等于0
2732  prefer等于0
2734  policy_cache等于创建高速缓存区
2738  sn_cache等于创建高速缓存区
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  如果largest小于total_pages
2762  largest等于total_pages
2763  prefer等于nid
2767  如果total_pages左移PAGE_SHIFT determines the page size 位大于等于16左移20位则The inline keyword gives the compiler room to decide to inline, or* not inline a function as it sees best(nid, interleave_nodes)
2772  如果此条件成立可能性小(为编译器优化)(nodes_empty(interleave_nodes))则The inline keyword gives the compiler room to decide to inline, or* not inline a function as it sees best(prefer, interleave_nodes)
2775  如果Set the process memory policy 打印错误信息("%s: interleaving failed\n", __func__)
2778  check_numabalancing_enable()
调用者
名称描述
start_kernel启动内核