linux-5.15/buddy_order()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#w9c20fae]
#backlinks
*説明 [#r16e3d2d]
-パス: [[linux-5.15/mm/internal.h]]
-FIXME: これは何?
--説明
**引数 [#tac568e9]
-struct page *page
--
--[[linux-5.15/page]]
**返り値 [#ab1a8788]
-unsigned int
--
**参考 [#w2d661c8]
*実装 [#r2827d15]
/*
* This function returns the order of a free page in the...
* general, page_zone(page)->lock must be held by the ca...
* page from being allocated in parallel and returning g...
* If a caller does not hold page_zone(page)->lock, it m...
* page cannot be allocated or merged in parallel. Alter...
* handle invalid values gracefully, and use buddy_order...
*/
static inline unsigned int buddy_order(struct page *page)
{
/* PageBuddy() must be checked by the caller */
return page_private(page);
}
-PageBuddy()がtrueの場合、page->privateにorderがセットさ...
--[[linux-5.15/page_private()]]
--[[linux-5.15/PageBuddy()]]
-orderを設定している箇所はset_buddy_order()関数。
--[[linux-5.15/set_buddy_order()]]
*コメント [#e4d94c70]
終了行:
*参照元 [#w9c20fae]
#backlinks
*説明 [#r16e3d2d]
-パス: [[linux-5.15/mm/internal.h]]
-FIXME: これは何?
--説明
**引数 [#tac568e9]
-struct page *page
--
--[[linux-5.15/page]]
**返り値 [#ab1a8788]
-unsigned int
--
**参考 [#w2d661c8]
*実装 [#r2827d15]
/*
* This function returns the order of a free page in the...
* general, page_zone(page)->lock must be held by the ca...
* page from being allocated in parallel and returning g...
* If a caller does not hold page_zone(page)->lock, it m...
* page cannot be allocated or merged in parallel. Alter...
* handle invalid values gracefully, and use buddy_order...
*/
static inline unsigned int buddy_order(struct page *page)
{
/* PageBuddy() must be checked by the caller */
return page_private(page);
}
-PageBuddy()がtrueの場合、page->privateにorderがセットさ...
--[[linux-5.15/page_private()]]
--[[linux-5.15/PageBuddy()]]
-orderを設定している箇所はset_buddy_order()関数。
--[[linux-5.15/set_buddy_order()]]
*コメント [#e4d94c70]
ページ名: