Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct kmem_cache *cachep
struct kmem_cache_node *n
gfp_tflags
2907  void * list = NULL
2909  If Not gfp_pfmemalloc_allowed(flags) Then Return NULL
2912  spin_lock( & list_lock)
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
Caller
NameDescribe
cache_alloc_refill