Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:25:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:resv_map_alloc

Proto:struct resv_map *resv_map_alloc(void)

Type:struct resv_map

Parameter:Nothing

655  resv_map = kmalloc( size of * , GFP_KERNEL)
656  rg = kmalloc( size of rg , GFP_KERNEL)
658  If Not resv_map || Not rg Then
659  kfree(resv_map)
660  kfree(rg)
661  Return NULL
664  kref_init - initialize object.*@kref: object in question.
665  Process spin lock initialization( & lock)
666  Initialization list head
668  adds_in_progress = 0
670  Initialization list head
671  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
672  region_cache_count = 1
674  Return resv_map
Caller
NameDescribe
hugetlb_reserve_pages