linux-5.15/per_cpu_pages_init()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#kb5f0b01]
#backlinks
*説明 [#jd9aba58]
-パス: [[linux-5.15/mm/page_alloc.c]]
-FIXME: これは何?
--説明
**引数 [#ca4f15a9]
-
--
**返り値 [#vd2fe834]
-
--
**参考 [#i7b9c859]
*実装 [#g82f9640]
static void per_cpu_pages_init(struct per_cpu_pages *pcp...
{
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...
* pageset's initialization will update them subsequent...
* need to be as careful as pageset_update() as nobody ...
* 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]
終了行:
*参照元 [#kb5f0b01]
#backlinks
*説明 [#jd9aba58]
-パス: [[linux-5.15/mm/page_alloc.c]]
-FIXME: これは何?
--説明
**引数 [#ca4f15a9]
-
--
**返り値 [#vd2fe834]
-
--
**参考 [#i7b9c859]
*実装 [#g82f9640]
static void per_cpu_pages_init(struct per_cpu_pages *pcp...
{
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...
* pageset's initialization will update them subsequent...
* need to be as careful as pageset_update() as nobody ...
* 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]
ページ名: