函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:19:24
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__do_cache_alloc

函数原型:static __always_inline void *__do_cache_alloc(struct kmem_cache *cache, gfp_t flags)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cache
gfp_tflags
3320  如果mempolicycpuset_do_slab_mem_spread()则
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  如果objp则转到:out
3325  objp等于____cache_alloc(cache, flags)
3331  如果非objpobjp等于A interface to enable slab creation on nodeid
3334  out :
3335  返回:objp
调用者
名称描述
slab_alloc
kmem_cache_alloc_bulk