Function report |
Source Code:mm\slab.c |
Create Date:2022-07-28 15:45:07 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cache_alloc_pfmemalloc
Proto:static noinline void *cache_alloc_pfmemalloc(struct kmem_cache *cachep, struct kmem_cache_node *n, gfp_t flags)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct kmem_cache * | cachep | |
struct kmem_cache_node * | n | |
gfp_t | flags |
2907 | void * list = NULL |
2909 | If Not gfp_pfmemalloc_allowed(flags) Then Return NULL |
2913 | page = get_first_slab(n, true) |
2914 | If Not page Then |
2915 | spin_unlock( & list_lock) |
2916 | Return NULL |
2919 | obj = slab_get_obj(cachep, page) |
2920 | free_objects-- |
2922 | fixup_slab_list(cachep, n, page, & list) |
2924 | spin_unlock( & list_lock) |
2925 | fixup_objfreelist_debug(cachep, & list) |
2927 | Return obj |
Name | Describe |
---|---|
cache_alloc_refill |
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 |