#author("2025-10-24T12:05:55+09:00","default:guest","guest")

#author("2025-10-24T12:06:04+09:00","default:guest","guest")
*参照元 [#o3e00068]
#backlinks

*説明 [#r2cb87ef]
-パス: [[linux-5.15/]]
-パス: [[linux-5.15/mm/mmzone.c]]

-FIXME: これは何?
--説明


**引数 [#m2dc5442]
-struct zoneref *z
--
--[[linux-5.15/zoneref]]
-enum zone_type highest_zoneidx
--
--[[linux-5.15/zone_type]]
-nodemask_t *nodes
--
--[[linux-5.15/nodemask_t]]


**返り値 [#bd153c85]
-struct zoneref *
--
--[[linux-5.15/zoneref]]


**参考 [#n94f769b]


*実装 [#x9382084]

 /* Returns the next zone at or below highest_zoneidx in a zonelist */
 struct zoneref *__next_zones_zonelist(struct zoneref *z,
 					enum zone_type highest_zoneidx,
 					nodemask_t *nodes)
 {
 	/*
 	 * Find the next suitable zone to use for the allocation.
 	 * Only filter based on nodemask if it's set
 	 */
 	if (unlikely(nodes == NULL))
 		while (zonelist_zone_idx(z) > highest_zoneidx)
 			z++;
 	else
 		while (zonelist_zone_idx(z) > highest_zoneidx ||
 				(z->zone && !zref_in_nodemask(z, nodes)))
 			z++;
 
 	return z;
 }

-
--[[linux-5.15/unlikely()]]
--[[linux-5.15/zonelist_zone_idx()]]
--[[linux-5.15/zref_in_nodemask()]]


*コメント [#h2531f67]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS