函数逻辑报告 |
Source Code:mm\page_alloc.c |
Create Date:2022-07-27 16:34:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:prep_new_page
函数原型:static void prep_new_page(struct page *page, unsigned int order, gfp_t gfp_flags, unsigned int alloc_flags)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
unsigned int | order | |
gfp_t | gfp_flags | |
unsigned int | alloc_flags |
2157 | post_alloc_hook(page, order, gfp_flags) |
2159 | 如果非free_pages_prezeroed()且want_init_on_alloc(gfp_flags)则kernel_init_free_pages(page, 1 << order) |
2162 | 如果order且gfp_flags按位与__GFP_COMP则prep_compound_page(page, order) |
2171 | 如果alloc_flags按位与don't check watermarks at all 则Only to be called by the page allocator on a freshly allocated* page. |
2173 | 否则clear_page_pfmemalloc(page) |
名称 | 描述 |
---|---|
get_page_from_freelist | get_page_from_freelist goes through the zonelist trying to allocate* a page. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |