Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void build_zonelists(pg_data_t *pgdat)

Type:void

Parameter:

TypeParameterName
pg_data_t *pgdat
5611  nr_nodes = 0
5616  local_node = node_id
5617  load = nr_online_nodes
5618  prev_node = local_node
5619  nodes_clear(used_mask)
5621  memset(node_order, 0, size of node_order )
5622  When (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 cycle
5628  If node_distance(local_node, node) != node_distance(local_node, prev_node) Then 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
Caller
NameDescribe
__build_all_zonelists