函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:36:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static unsigned long nr_free_zone_pages(int offset)

返回类型:unsigned long

参数:

类型参数名称
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  如果size大于highsum加等于sizehigh
5038  返回:sum
调用者
名称描述
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.