linux-5.15/pcp_allowed_order()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#ubcecf02]
#backlinks
*説明 [#t603c530]
-パス: [[linux-5.15/mm/page_alloc.c]]
-pcplist(Per-CPU list)からページを確保するかどうかを判...
**引数 [#c8ffb8e6]
-unsigned int order
--オーダー
**返り値 [#uccb6554]
-bool
--trueならpcplistからページ確保する、falseならpcplistから...
**参考 [#qc7b2151]
*実装 [#x3618d75]
static inline bool pcp_allowed_order(unsigned int order)
{
if (order <= PAGE_ALLOC_COSTLY_ORDER)
return true;
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
if (order == pageblock_order)
return true;
#endif
return false;
}
-Transparent Hugepageが無効: 3以下ならtrue
--PAGE_ALLOC_COSTLY_ORDERは3
-Transparent Hugepageが有効: pageblock_orderと等しければt...
--AArch64版の例: pageblock_order = HUGETLB_PAGE_ORDER = 9
--[[linux-5.15/HUGETLB_PAGE_ORDER]]
*コメント [#u5b5ac57]
終了行:
*参照元 [#ubcecf02]
#backlinks
*説明 [#t603c530]
-パス: [[linux-5.15/mm/page_alloc.c]]
-pcplist(Per-CPU list)からページを確保するかどうかを判...
**引数 [#c8ffb8e6]
-unsigned int order
--オーダー
**返り値 [#uccb6554]
-bool
--trueならpcplistからページ確保する、falseならpcplistから...
**参考 [#qc7b2151]
*実装 [#x3618d75]
static inline bool pcp_allowed_order(unsigned int order)
{
if (order <= PAGE_ALLOC_COSTLY_ORDER)
return true;
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
if (order == pageblock_order)
return true;
#endif
return false;
}
-Transparent Hugepageが無効: 3以下ならtrue
--PAGE_ALLOC_COSTLY_ORDERは3
-Transparent Hugepageが有効: pageblock_orderと等しければt...
--AArch64版の例: pageblock_order = HUGETLB_PAGE_ORDER = 9
--[[linux-5.15/HUGETLB_PAGE_ORDER]]
*コメント [#u5b5ac57]
ページ名: