Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int create_mem_extents(struct list_head *list, gfp_t gfp_mask)

Type:int

Parameter:

TypeParameterName
struct list_head *list
gfp_tgfp_mask
591  Initialization list head
593  do nothing (zone)
597  zone_start = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT
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  If zone_start <= end Then Break
604  If hook == list || zone_end < start Then
609  If Not new_ext Then
613  start = zone_start
614  end = zone_end
616  Continue
620  If zone_start < start Then start = zone_start
622  If zone_end > end Then end = zone_end
626  cur = ext
628  If zone_end < start Then Break
630  If zone_end < end Then end = end
632  deletes entry from list
633  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
637  Return 0
Caller
NameDescribe
memory_bm_creatememory_bm_create - Allocate memory for a memory bitmap.