Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:04:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:prep_new_page
Proto:static void prep_new_page(struct page *page, unsigned int order, gfp_t gfp_flags, unsigned int alloc_flags)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
unsigned int | order | |
gfp_t | gfp_flags | |
unsigned int | alloc_flags |
2157 | post_alloc_hook(page, order, gfp_flags) |
2159 | If Not free_pages_prezeroed() && want_init_on_alloc(gfp_flags) Then kernel_init_free_pages(page, 1 << order) |
2162 | If order && gfp_flags & __GFP_COMP Then prep_compound_page(page, order) |
2171 | If alloc_flags & don't check watermarks at all Then Only to be called by the page allocator on a freshly allocated* page. |
2173 | Else clear_page_pfmemalloc(page) |
Name | Describe |
---|---|
get_page_from_freelist | get_page_from_freelist goes through the zonelist trying to allocate* a page. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |