函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:32:44
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:de_dirtyable_memory - number of dirtyable pages in a node*@pgdat: the node* Return: the node's number of pages potentially available for dirty* page cache. This is the base value for the per-node dirty limits.

函数原型:static unsigned long node_dirtyable_memory(struct pglist_data *pgdat)

返回类型:unsigned long

参数:

类型参数名称
struct pglist_data *pgdat
279  nr_pages等于0
282 z小于MAX_NR_ZONES循环
283  zone等于包含了结点中各内存域的数据结构z
285  如果非Returns true if a zone has memory 则继续下一循环
288  nr_pages加等于zone_page_state(zone, NR_FREE_PAGES)
296  nr_pages减等于两数取小(nr_pages, * This is a per-node reserve of pages that are not available * to userspace allocations.)
298  nr_pages加等于node_page_state(pgdat, NR_INACTIVE_FILE)
299  nr_pages加等于node_page_state(pgdat, NR_ACTIVE_FILE)
301  返回:nr_pages
调用者
名称描述
node_dirty_limitde_dirty_limit - maximum number of dirty pages allowed in a node*@pgdat: the node* Return: the maximum number of dirty pages allowed in a node, based* on the node's dirtyable memory.