函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\vmstat.h Create Date:2022-07-27 06:44:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:zone_page_state

函数原型:static inline unsigned long zone_page_state(struct zone *zone, enum zone_stat_item item)

返回类型:unsigned long

参数:

类型参数名称
struct zone *zone
enum zone_stat_itemitem
206  x等于atomic_long_read( & 内存域的统计信息[item])
211  返回:x
调用者
名称描述
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image
enough_free_memgh_free_mem - Check if there is enough free memory for the image.
node_dirtyable_memoryde_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.
lruvec_lru_sizelruvec_lru_size - Returns the number of pages on the given LRU list.*@lruvec: lru vector*@lru: lru to use*@zone_idx: zones to consider (use MAX_NR_ZONES for the whole LRU list)
allow_direct_reclaim
sum_zone_node_page_stateDetermine the per node value of a stat item. This function* is called frequently in a NUMA machine, so try to be as* frugal as possible.
zoneinfo_show_print
__zone_watermark_okReturn true if free base pages are above 'mark'. For high-order checks it* will return true of the order-0 watermark is reached and there is at least* one free page of a suitable size. Checking now avoids taking the zone lock
zone_watermark_ok
zone_watermark_fast
zone_watermark_ok_safe
show_free_areasShow free area list (used inside shift_scroll-lock stuff)* We also calculate the percentage fragmentation