Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:33:07
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_pages_current - Allocate pages.*@gfp:* %GFP_USER user allocation,* %GFP_KERNEL kernel allocation,* %GFP_HIGHMEM highmem allocation,* %GFP_FS don't call back into a file system.* %GFP_ATOMIC don't sleep.

Proto:struct page *alloc_pages_current(gfp_t gfp, unsigned order)

Type:struct page

Parameter:

TypeParameterName
gfp_tgfp
unsignedorder
2198  pol = un-time system-wide default policy => local allocation
2201  If Not in_interrupt() && Not (gfp & __GFP_THISNODE) Then pol = get_task_policy(current process)
2208  If See MPOL_* above == MPOL_INTERLEAVE Then page = Allocate a page in interleaved policy.Own path because it needs to do special accounting.
2210  Else page = This is the 'heart' of the zoned buddy allocator.
2215  Return page
Caller
NameDescribe
alloc_pages