#author("2025-09-16T10:00:46+09:00","default:guest","guest")

#author("2025-09-16T10:00:58+09:00","default:guest","guest")
*参照元 [#hdab5019]
#backlinks

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

-FIXME: これは何?
--説明


**参考 [#t986c77d]


*実装 [#i37b7a0e]

 enum migratetype {
 	MIGRATE_UNMOVABLE,
 	MIGRATE_MOVABLE,
 	MIGRATE_RECLAIMABLE,
 	MIGRATE_PCPTYPES,	/* the number of types on the pcp lists */
 	MIGRATE_HIGHATOMIC = MIGRATE_PCPTYPES,
 #ifdef CONFIG_CMA
 	/*
 	 * MIGRATE_CMA migration type is designed to mimic the way
 	 * ZONE_MOVABLE works.  Only movable pages can be allocated
 	 * from MIGRATE_CMA pageblocks and page allocator never
 	 * implicitly change migration type of MIGRATE_CMA pageblock.
 	 *
 	 * The way to use it is to change migratetype of a range of
 	 * pageblocks to MIGRATE_CMA which can be done by
 	 * __free_pageblock_cma() function.  What is important though
 	 * is that a range of pageblocks must be aligned to
 	 * MAX_ORDER_NR_PAGES should biggest page be bigger than
 	 * a single pageblock.
 	 */
 	MIGRATE_CMA,
 #endif
 #ifdef CONFIG_MEMORY_ISOLATION
 	MIGRATE_ISOLATE,	/* can't allocate from here */
 #endif
 	MIGRATE_TYPES
 };

-migratetypeの意味は下記参照。
--[[linux-5.15/メモリ管理]]


*コメント [#e6b13d82]

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