Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\vmstat.h Create Date:2022-07-28 05:43:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:zone_page_state

Proto:static inline unsigned long zone_page_state(struct zone *zone, enum zone_stat_item item)

Type:unsigned long

Parameter:

TypeParameterName
struct zone *zone
enum zone_stat_itemitem
206  x = atomic_long_read( & vm_stat[item])
211  Return x
Caller
NameDescribe
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