#author("2025-10-24T11:59:00+09:00","default:guest","guest") #author("2025-10-24T12:00:03+09:00","default:guest","guest") *参照元 [#k31dd481] #backlinks *説明 [#p4997609] -パス: [[linux-5.15/]] -パス: [[linux-5.15/include/linux/mmzone.h]] -FIXME: これは何? --説明 **引数 [#cb9e4058] -struct zonelist *zonelist -- --[[linux-5.15/zonelist]] -enum zone_type highest_zoneidx, -- --[[linux-5.15/zone_type]] -nodemask_t *nodes -- --[[linux-5.15/nodemask_t]] **返り値 [#wce143c3] -struct zoneref * -- --[[linux-5.15/zoneref]] **参考 [#wb02da06] *実装 [#mbe6404c] /** * first_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. The zoneref returned is a cursor that can be * used to iterate the zonelist with next_zones_zonelist by advancing it by * one before calling. * * When no eligible zone is found, zoneref->zone is NULL (zoneref itself is * never NULL). This may happen either genuinely, or due to concurrent nodemask * update due to cpuset modification. * * Return: Zoneref pointer for the first suitable zone found */ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes) { return next_zones_zonelist(zonelist->_zonerefs, highest_zoneidx, nodes); } - --[[linux-5.15/]] --[[linux-5.15/next_zones_zonelist()]] *コメント [#ndf21c6c]