函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Builds allocation fallback zone lists.* Add all populated zones of a node to the zonelist.

函数原型:static int build_zonerefs_node(pg_data_t *pgdat, struct zoneref *zonerefs)

返回类型:int

参数:

类型参数名称
pg_data_t *pgdat
struct zoneref *zonerefs
5431  zone_type等于MAX_NR_ZONES
5432  nr_zones等于0
5434  循环
5435  zone_type自减
5436  zone等于包含了结点中各内存域的数据结构zone_type
5441 zone_type循环
5443  返回:nr_zones
调用者
名称描述
build_zonelists_in_node_orderBuild 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.
build_thisnode_zonelistsBuild gfp_thisnode zonelists