#author("2025-09-10T14:29:43+09:00","default:guest","guest") #author("2025-09-10T15:21:44+09:00","default:guest","guest") *参照元 [#v0b4e161] #backlinks *説明 [#a03f820f] -パス: [[linux-5.15/include/linux/mmzone.h]] -FIXME: これは何? --説明 -ゾーンにmanagedページがあるかないかを返す。 --managedページが0かどうかで決まるので、ゾーンにページが割り当てられていたとして、全域reservedであればこの関数はfalseを返す。 **引数 [#yca05ac7] -struct zone *zone -- --メモリゾーン。 --[[linux-5.15/zone]] **返り値 [#q0965564] -bool -- --managedページがあればtrue、なければfalse。 **参考 [#i8956c4f] *実装 [#tc83afde] /* * Returns true if a zone has pages managed by the buddy allocator. * All the reclaim decisions have to use this function rather than * populated_zone(). If the whole zone is reserved then we can easily * end up with populated_zone() && !managed_zone(). */ static inline bool managed_zone(struct zone *zone) { return zone_managed_pages(zone); } - -ゾーンのmanaged_pagesがあればtrue、なければfalseを返す。 --[[linux-5.15/zone_managed_pages()]] *コメント [#x9ca08f0]