Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\snapshot.c Create Date:2022-07-28 10:00:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reate_zone_bm_rtree - Create a radix tree for one zone.* Allocated the mem_zone_bm_rtree structure and initializes it.* This function also allocated and builds the radix tree for the* zone.

Proto:static struct mem_zone_bm_rtree *create_zone_bm_rtree(gfp_t gfp_mask, int safe_needed, struct chain_allocator *ca, unsigned long start, unsigned long end)

Type:struct mem_zone_bm_rtree

Parameter:

TypeParameterName
gfp_tgfp_mask
intsafe_needed
struct chain_allocator *ca
unsigned longstart
unsigned longend
508  pages = end - start
509  zone = chain_alloc(ca, sizeof(structmem_zone_bm_rtree))
510  If Not zone Then Return NULL
513  Initialization list head
514  Initialization list head
515  Zone start page frame = start
516  Zone end page frame + 1 = end
517  nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK)
519  When i < nr_blocks cycle
522  Return NULL
526  Return zone
Caller
NameDescribe
memory_bm_creatememory_bm_create - Allocate memory for a memory bitmap.