Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static inline struct zonelist *node_zonelist(int nid, gfp_t flags)

Type:struct zonelist

Parameter:

TypeParameterName
intnid
gfp_tflags
479  Return node_zonelists + There is only one page-allocator function, and two main namespaces to* it. The alloc_page*() variants return 'struct page *' and as such* can allocate highmem pages, the *get*page*() variants return* virtual kernel addresses to the allocated page(s).
Caller
NameDescribe
try_to_free_mem_cgroup_pages
prepare_alloc_pages
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
dequeue_huge_page_nodemask
mpol_misplacedmpol_misplaced - check whether current page node is valid in policy*@page: page to be checked*@vma: vm area where page mapped*@addr: virtual address where page mapped* Lookup current policy node id for vma,addr and "compare to" page's* node id
fallback_allocFallback function if there was no memory available and no objects on a* certain node and fall back is permitted. First we scan all the* available node for available objects. If that fails then we* perform an allocation without specifying a node
get_any_partialGet a page from somewhere. Search in increasing NUMA distances.