#author("2025-09-16T10:08:14+09:00","default:guest","guest") #author("2025-09-16T10:10:51+09:00","default:guest","guest") *参照元 [#kb5f0b01] #backlinks *説明 [#jd9aba58] -パス: [[linux-5.15/]] -パス: [[linux-5.15/mm/page_alloc.c]] -FIXME: これは何? --説明 **引数 [#ca4f15a9] - -- **返り値 [#vd2fe834] - -- **参考 [#i7b9c859] *実装 [#g82f9640] - --[[linux-5.15/]] static void per_cpu_pages_init(struct per_cpu_pages *pcp, struct per_cpu_zonestat *pzstats) { int pindex; memset(pcp, 0, sizeof(*pcp)); memset(pzstats, 0, sizeof(*pzstats)); for (pindex = 0; pindex < NR_PCP_LISTS; pindex++) INIT_LIST_HEAD(&pcp->lists[pindex]); /* * Set batch and high values safe for a boot pageset. A true percpu * pageset's initialization will update them subsequently. Here we don't * need to be as careful as pageset_update() as nobody can access the * pageset yet. */ pcp->high = BOOT_PAGESET_HIGH; pcp->batch = BOOT_PAGESET_BATCH; pcp->free_factor = 0; } -BOOT_PAGESET_HIGHは0固定、BOOT_PAGESET_BATCHは1固定。 --[[linux-5.15/INIT_LIST_HEAD()]] *コメント [#tae56487]