#author("2025-09-10T17:32:42+09:00","default:guest","guest")
#author("2025-09-10T17:32:50+09:00","default:guest","guest")
*参照元 [#t949bb4c]
#backlinks

*説明 [#hddd46ca]
-パス: [[linux-5.15/include/linux/mmzone.h]]

-ゾーンにページが存在している(= present_pagesが0以外)かどうか取得する。仮に全域reservedでもtrueになる。


**引数 [#yfcc02a0]
-struct zone *zone
--メモリゾーン。
--[[linux-5.15/zone]]


**返り値 [#j91c3755]
-bool
---ゾーンにページが存在している(= present_pagesが0以外)ならtrue、存在しなければfalse。
--ゾーンにページが存在している(= present_pagesが0以外)ならtrue、存在しなければfalse。


**参考 [#s881cdf6]


*実装 [#i208b9d1]

 /* Returns true if a zone has memory */
 static inline bool populated_zone(struct zone *zone)
 {
 	return zone->present_pages;
 }

-ゾーンにページが存在している(= present_pagesが0以外)ならtrueを返す。全域reservedでもtrueになる。
--[[linux-5.15/メモリ管理]]


*コメント [#ib2b2e55]

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