Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:05:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:gfp_to_alloc_flags
Proto:static inline unsigned int gfp_to_alloc_flags(gfp_t gfp_mask)
Type:unsigned int
Parameter:
Type | Parameter | Name |
---|---|---|
gfp_t | gfp_mask |
4175 | alloc_flags = The ALLOC_WMARK bits are used as an index to zone->watermark | check for correct cpuset |
4178 | BUILD_BUG_ON - break compile if a condition is true(__GFP_HIGH != (__forcegfp_t)__GFP_HIGH set ) |
4186 | alloc_flags |= (__force int)(gfp_mask & __GFP_HIGH) |
4193 | If Not (gfp_mask & __GFP_NOMEMALLOC) Then alloc_flags |= ry to alloc harder |
4199 | alloc_flags &= ~check for correct cpuset |
4200 | Else if Value for the false possibility is greater at compile time(rt_task(current process)) && Not in_interrupt() Then alloc_flags |= ry to alloc harder |
4203 | If gfp_mask & kswapd can wake Then alloc_flags |= allow waking of kswapd |
4207 | If gfpflags_to_migratetype(gfp_mask) == MIGRATE_MOVABLE Then alloc_flags |= allow allocations from CMA areas |
4210 | Return alloc_flags |
Name | Describe |
---|---|
__alloc_pages_slowpath |
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 |