Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:06:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:r_free_zone_pages - count number of pages beyond high watermark*@offset: The zone index of the highest zone* nr_free_zone_pages() counts the number of pages which are beyond the* high watermark within all zones at or below a given zone index

Proto:static unsigned long nr_free_zone_pages(int offset)

Type:unsigned long

Parameter:

TypeParameterName
intoffset
5027  sum = 0
5029  zonelist = We get the zone list from the current node and the gfp_mask.* This zone list contains a maximum of MAXNODES*MAX_NR_ZONES zones.* There are two zonelists per node, one for all zones with memory and
5031  r_each_zone_zonelist - helper macro to iterate over valid zones in a zonelist at or below a given zone index*@zone - The current zone in the iterator*@z - The current pointer within zonelist->zones being iterated*@zlist - The zonelist being (zone, z, zonelist, offset)
5032  size = zone_managed_pages(zone)
5033  high = high_wmark_pages(zone)
5034  If size > high Then sum += size - high
5038  Return sum
Caller
NameDescribe
nr_free_buffer_pagesr_free_buffer_pages - count number of pages beyond high watermark* nr_free_buffer_pages() counts the number of pages which are beyond the high* watermark within ZONE_DMA and ZONE_NORMAL.* Return: number of pages beyond high watermark within ZONE_DMA and
nr_free_pagecache_pagesr_free_pagecache_pages - count number of pages beyond high watermark* nr_free_pagecache_pages() counts the number of pages which are beyond the* high watermark within all zones.* Return: number of pages beyond high watermark within all zones.