函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\snapshot.c Create Date:2022-07-27 11:00:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:reate_mem_extents - Create a list of memory extents.*@list: List to put the extents into.*@gfp_mask: Mask to use for memory allocations.* The extents represent contiguous ranges of PFNs.

函数原型:static int create_mem_extents(struct list_head *list, gfp_t gfp_mask)

返回类型:int

参数:

类型参数名称
struct list_head *list
gfp_tgfp_mask
591  初始化链表头
593  do nothing (zone)
597  zone_start等于内存域第一个页帧的索引
598  zone_end等于zone_end_pfn(zone)
600  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(ext, list, hook)
601  如果zone_start小于等于end退出
604  如果hook恒等于listzone_end小于start
609  如果非new_ext
613  start等于zone_start
614  end等于zone_end
616  继续下一循环
620  如果zone_start小于startstart等于zone_start
622  如果zone_end大于endend等于zone_end
626  cur等于ext
628  如果zone_end小于start退出
630  如果zone_end小于endend等于end
632  删除链表项
633  释放内存
637  返回:0
调用者
名称描述
memory_bm_creatememory_bm_create - Allocate memory for a memory bitmap.