函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zone_managed_pages

函数原型:static inline unsigned long zone_managed_pages(struct zone *zone)

返回类型:unsigned long

参数:

类型参数名称
struct zone *zone
600  返回:atomic_long_read( & * spanned_pages is the total pages spanned by the zone, including * holes, which is calculated as: * spanned_pages = zone_end_pfn - zone_start_pfn; * present_pages is physical pages existing within the zone, which * is calculated as: * present_pages = span)
调用者
名称描述
show_mem
zoneinfo_show_print
reserve_highatomic_pageblockReserve a pageblock for exclusive use of high-order atomic allocations if* there are no empty page blocks that contain a page with a suitable order
nr_free_zone_pagesr_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
si_meminfo_node
show_free_areasShow free area list (used inside shift_scroll-lock stuff)* We also calculate the percentage fragmentation
zone_batchsize
pageset_set_high_and_batch
calculate_totalreserve_pagesalculate_totalreserve_pages - called when sysctl_lowmem_reserve_ratio* or min_free_kbytes changes.
setup_per_zone_lowmem_reservesetup_per_zone_lowmem_reserve - called whenever* sysctl_lowmem_reserve_ratio changes. Ensures that each zone* has a correct pages reserved value, so an adequate number of* pages are left in the zone after a successful __alloc_pages().
__setup_per_zone_wmarks
setup_min_unmapped_ratio
setup_min_slab_ratio
managed_zoneReturns true if a zone has pages managed by the buddy allocator.* All the reclaim decisions have to use this function rather than* populated_zone(). If the whole zone is reserved then we can easily* end up with populated_zone() && !managed_zone().