函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void build_zonelists_in_node_order(pg_data_t *pgdat, int *node_order, unsigned nr_nodes)

返回类型:void

参数:

类型参数名称
pg_data_t *pgdat
int *node_order
unsignednr_nodes
5572  zonerefs等于_zonerefs
5574 i小于nr_nodes循环
5577  node等于NUMA节点数据区(node_order[i])
5579  nr_zones等于Builds allocation fallback zone lists.* Add all populated zones of a node to the zonelist.
5580  zonerefs加等于nr_zones
5582  Pointer to actual zone = NULL
5583  zone_idx(zoneref->zone) 等于0
调用者
名称描述
build_zonelistsBuild 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.