函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Build zonelists ordered by zone and nodes within zones.* This results in conserving DMA zone[s] until all Normal memory is* exhausted, but results in overflowing to remote node while memory* may still exist in local DMA zone.

函数原型:static void build_zonelists(pg_data_t *pgdat)

返回类型:void

参数:

类型参数名称
pg_data_t *pgdat
5611  nr_nodes等于0
5616  local_node等于全局结点ID
5617  load等于nr_online_nodes
5618  prev_node等于local_node
5619  nodes_clear(used_mask)
5621  memset(node_order, 0, node_order的长度)
5622 node等于d_next_best_node - find the next node that should appear in a given node's fallback list*@node: node whose fallback list we're appending*@used_node_mask: nodemask_t of already used nodes* We use a number of factors to determine which is the next node that 大于等于0循环
5628  如果node_distance(local_node, node)不等于node_distance(local_node, prev_node)则node_load[node]等于load
5632  node_order[nr_nodes++]等于node
5633  prev_node等于node
5634  load自减
5637  Build zonelists ordered by node and zones within node.* This results in maximum locality--normal zone overflows into local* DMA zone, if any--but risks exhausting DMA zone.
5638  Build gfp_thisnode zonelists
调用者
名称描述
__build_all_zonelists