函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kimage_alloc_pages

函数原型:static struct page *kimage_alloc_pages(gfp_t gfp_mask, unsigned int order)

返回类型:struct page

参数:

类型参数名称
gfp_tgfp_mask
unsigned intorder
303  如果fatal_signal_pending(当前进程)则返回:NULL
305  pages等于alloc_pages(gfp_mask & ~__GFP_ZERO, order)
306  如果pages
309  See page-flags.h for PAGE_MAPPING_FLAGS = NULL
310  set_page_private(pages, order)
311  count等于1左移order
312 i小于count循环SetPageReserved(pages + i)
315  arch_kexec_post_alloc_pages(page_address(pages), count, gfp_mask)
318  如果gfp_mask按位与__GFP_ZERO则以i小于count循环
320  clear_highpage(pages + i)
323  返回:pages
调用者
名称描述
kimage_alloc_normal_control_pages
kimage_alloc_page