函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mmzone.h Create Date:2022-07-27 06:40:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: - Zoneref pointer for the first suitable zone found (see below)

函数原型:static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)

返回类型:struct zoneref

参数:

类型参数名称
struct zonelist *zonelist
enum zone_typehighest_zoneidx
nodemask_t *nodes

摘要:st_zones_zonelist - Returns the first zone at or below highest_zoneidx within the allowed nodemask in a zonelist*@zonelist - The zonelist to search for a suitable zone*@highest_zoneidx - The zone index of the highest zone to return*@nodes - An optional nodemask to filter the zonelist with* This function returns the first zone at or below a given zone index that is* within the allowed nodemask.

1080  返回:xt_zones_zonelist - Returns the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting point*@z - The cursor used as a starting point for the search*@highest_zoneidx - The zone index of the highest
调用者
名称描述
__alloc_pages_slowpath
finalise_acDetermine whether to spread dirty pages and what the first usable zone
mempolicy_slab_nodeDepending on the memory policy provide a node from which to allocate the* next slab entry.
mpol_misplacedmpol_misplaced - check whether current page node is valid in policy*@page: page to be checked*@vma: vm area where page mapped*@addr: virtual address where page mapped* Lookup current policy node id for vma,addr and "compare to" page's* node id