| Function report | 
| Source Code: mm\slab_common.c | Create Date:2022-07-28 14:29:38 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:To avoid unnecessary overhead, we pass through large allocation requests* directly to the page allocator. We use __GFP_COMP, because we will need to* know the allocation order to free the pages properly in kfree.
Proto:void *kmalloc_order(size_t size, gfp_t flags, unsigned int order)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| size_t | size | |
| gfp_t | flags | |
| unsigned int | order | 
| 1320 | void * ret = NULL | 
| 1323 | flags |= __GFP_COMP | 
| 1324 | page = alloc_pages(flags, order) | 
| 1325 | If Value is more likely to compile time(page) Then | 
| 1326 | ret = page_address(page) | 
| 1327 | mod_node_page_state(page_pgdat(page), NR_SLAB_UNRECLAIMABLE, 1 << order) | 
| 1330 | ret = kasan_kmalloc_large(ret, size, flags) | 
| 1332 | kmemleak_alloc(ret, size, 1, flags) | 
| 1333 | Return ret | 
| Name | Describe | 
|---|---|
| kmalloc_order_trace | 
| 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 |