Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:45:32
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__do_cache_alloc

Proto:static __always_inline void *__do_cache_alloc(struct kmem_cache *cache, gfp_t flags)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cache
gfp_tflags
3320  If mempolicy || cpuset_do_slab_mem_spread() Then
3321  objp = Try allocating on another node if PFA_SPREAD_SLAB is a mempolicy is set.* If we are in_interrupt, then process context, including cpusets and* mempolicy, may not apply and should not be used for allocation policy.
3322  If objp Then Go to out
3325  objp = ____cache_alloc(cache, flags)
3331  If Not objp Then objp = A interface to enable slab creation on nodeid
3334  out :
3335  Return objp
Caller
NameDescribe
slab_alloc
kmem_cache_alloc_bulk