函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:06:16
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:struct page *alloc_pages_current(gfp_t gfp, unsigned order)

返回类型:struct page

参数:

类型参数名称
gfp_tgfp
unsignedorder
2198  pol等于un-time system-wide default policy => local allocation
2201  如果非in_interrupt()且非gfp按位与__GFP_THISNODE的值则pol等于get_task_policy(当前进程)
2208  如果See MPOL_* above 恒等于MPOL_INTERLEAVEpage等于Allocate a page in interleaved policy.Own path because it needs to do special accounting.
2210  否则page等于This is the 'heart' of the zoned buddy allocator.
2215  返回:page
调用者
名称描述
alloc_pages