linux-5.15/next_zones_zonelist()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#r3ea82ba]
#backlinks
*説明 [#v2861cda]
-パス: [[linux-5.15/include/linux/mmzone.h]]
-FIXME: これは何?
--説明
**引数 [#ve5ed204]
-struct zoneref *z
--現在のzonerefではなく、次のzonerefを指定する。もしhighe...
--next_zones_zonelist(++z, ...)のように使われる。
--[[linux-5.15/zoneref]]
-enum zone_type highest_zoneidx
--
--[[linux-5.15/zone_type]]
-nodemask_t *nodes
--
--[[linux-5.15/nodemask_t]]
**返り値 [#y40595ba]
-struct zoneref *
--
--[[linux-5.15/zoneref]]
**参考 [#e17646b2]
*実装 [#pab6e07e]
/**
* next_zones_zonelist - Returns the next zone at or bel...
* @z: The cursor used as a starting point for the search
* @highest_zoneidx: The zone index of the highest zone ...
* @nodes: An optional nodemask to filter the zonelist w...
*
* This function returns the next zone at or below a giv...
* within the allowed nodemask using a cursor as the sta...
* search. The zoneref returned is a cursor that represe...
* being examined. It should be advanced by one before c...
* next_zones_zonelist again.
*
* Return: the next zone at or below highest_zoneidx wit...
* nodemask using a cursor within a zonelist as a starti...
*/
static __always_inline struct zoneref *next_zones_zoneli...
enum zone_type highest_zoneidx,
nodemask_t *nodes)
{
if (likely(!nodes && zonelist_zone_idx(z) <= highest_zo...
return z;
return __next_zones_zonelist(z, highest_zoneidx, nodes);
}
-highest_zoneidxよりインデックスが小さいなら、zonerefをそ...
--nextと関数名についているが、この関数内で次のzoneref(z+...
--[[linux-5.15/likely()]]
-zonelist_zone_idx(z)はz->zone_idxと同じ。
--[[linux-5.15/zonelist_zone_idx()]]
--[[linux-5.15/__next_zones_zonelist()]]
*コメント [#j39a0984]
終了行:
*参照元 [#r3ea82ba]
#backlinks
*説明 [#v2861cda]
-パス: [[linux-5.15/include/linux/mmzone.h]]
-FIXME: これは何?
--説明
**引数 [#ve5ed204]
-struct zoneref *z
--現在のzonerefではなく、次のzonerefを指定する。もしhighe...
--next_zones_zonelist(++z, ...)のように使われる。
--[[linux-5.15/zoneref]]
-enum zone_type highest_zoneidx
--
--[[linux-5.15/zone_type]]
-nodemask_t *nodes
--
--[[linux-5.15/nodemask_t]]
**返り値 [#y40595ba]
-struct zoneref *
--
--[[linux-5.15/zoneref]]
**参考 [#e17646b2]
*実装 [#pab6e07e]
/**
* next_zones_zonelist - Returns the next zone at or bel...
* @z: The cursor used as a starting point for the search
* @highest_zoneidx: The zone index of the highest zone ...
* @nodes: An optional nodemask to filter the zonelist w...
*
* This function returns the next zone at or below a giv...
* within the allowed nodemask using a cursor as the sta...
* search. The zoneref returned is a cursor that represe...
* being examined. It should be advanced by one before c...
* next_zones_zonelist again.
*
* Return: the next zone at or below highest_zoneidx wit...
* nodemask using a cursor within a zonelist as a starti...
*/
static __always_inline struct zoneref *next_zones_zoneli...
enum zone_type highest_zoneidx,
nodemask_t *nodes)
{
if (likely(!nodes && zonelist_zone_idx(z) <= highest_zo...
return z;
return __next_zones_zonelist(z, highest_zoneidx, nodes);
}
-highest_zoneidxよりインデックスが小さいなら、zonerefをそ...
--nextと関数名についているが、この関数内で次のzoneref(z+...
--[[linux-5.15/likely()]]
-zonelist_zone_idx(z)はz->zone_idxと同じ。
--[[linux-5.15/zonelist_zone_idx()]]
--[[linux-5.15/__next_zones_zonelist()]]
*コメント [#j39a0984]
ページ名: